aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qbe.c b/qbe.c
index 4389e27..5135eca 100644
--- a/qbe.c
+++ b/qbe.c
@@ -1269,7 +1269,7 @@ emitdata(struct decl *d, struct init *init)
else if (d->align < d->type->align)
error(&tok.loc, "object requires alignment %d, which is stricter than %d", d->type->align, d->align);
for (cur = init; cur; cur = cur->next)
- cur->expr = eval(cur->expr);
+ cur->expr = eval(cur->expr, EVALINIT);
if (d->linkage == LINKEXTERN)
fputs("export ", stdout);
fputs("data ", stdout);