aboutsummaryrefslogtreecommitdiff
path: root/type.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-07-01 01:51:42 -0700
committerMichael Forney <mforney@mforney.org>2021-07-01 01:52:13 -0700
commitb4f89ba90b6ca3233cc80aef9d42055266fac8df (patch)
tree97cacdf57fd04ae584578ece56ec9c65383977dc /type.c
parenteb4320fcc6caf885038fe8b7b7d33ed87eb56608 (diff)
decl: Check that the flexible array member (if present) is last
Diffstat (limited to 'type.c')
-rw-r--r--type.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/type.c b/type.c
index 1c6888f..39f656f 100644
--- a/type.c
+++ b/type.c
@@ -61,7 +61,8 @@ mktype(enum typekind kind, enum typeprop prop)
t->kind = kind;
t->prop = prop;
t->value = NULL;
- t->incomplete = 0;
+ t->incomplete = false;
+ t->flexible = false;
return t;
}