aboutsummaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 7fe0fd9..7b3a576 100644
--- a/eval.c
+++ b/eval.c
@@ -116,7 +116,7 @@ eval(struct expr *expr)
expr->u.constant.u = intconstvalue(expr->u.ident.decl->value);
break;
case EXPRCOMPOUND:
- if (expr->u.compound.storage != SDSTATIC)
+ if (expr->u.compound.decl->u.obj.storage != SDSTATIC)
break;
d = mkdecl(NULL, DECLOBJECT, t, expr->qual, LINKNONE);
d->value = mkglobal(d);