summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-11-23 03:13:46 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-11-23 03:13:46 +0100
commit80c9c39cb76d0c6a31a33d1305cdd10011f582cc (patch)
tree8a5c4ff837a6ac0da54b66ea4293b9f4c9129a4f
parentc225afacccc90674cfe9bed028c8567a56ed604f (diff)
WIP: fix f_const_empty_xxx
-rw-r--r--filter/decl.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/decl.m4 b/filter/decl.m4
index 7ac87d81..397a6183 100644
--- a/filter/decl.m4
+++ b/filter/decl.m4
@@ -595,16 +595,16 @@ f_const_promotion_(struct f_inst *arg, enum f_type want, int update)
*c = f_const_empty_prefix_set;
return 1;
} else if ((c->type == T_EMPTY_LIST) && (want == T_CLIST)) {
- *c = f_const_empty_clist;
+ *c = val_empty(T_CLIST);
return 1;
} else if ((c->type == T_EMPTY_LIST) && (want == T_ECLIST)) {
- *c = f_const_empty_eclist;
+ *c = val_empty(T_ECLIST);
return 1;
} else if ((c->type == T_EMPTY_LIST) && (want == T_LCLIST)) {
- *c = f_const_empty_lclist;
+ *c = val_empty(T_LCLIST);
return 1;
} else if ((c->type == T_EMPTY_LIST) && (want == T_TLVLIST)) {
- *c = f_const_empty_tlvlist;
+ *c = val_empty(T_TLVLIST);
return 1;
}