aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.c b/init.c
index ec76ef3..20e2f51 100644
--- a/init.c
+++ b/init.c
@@ -129,7 +129,7 @@ designator(struct scope *s, struct initparser *p)
if (t->kind != TYPEARRAY)
error(&tok.loc, "index designator is only valid for array types");
next();
- p->sub->idx = intconstexpr(s);
+ p->sub->idx = intconstexpr(s, false);
if (t->incomplete)
updatearray(t, p->sub->idx);
else if (p->sub->idx >= t->array.length)