aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decl.c b/decl.c
index 0075baf..9b7f664 100644
--- a/decl.c
+++ b/decl.c
@@ -247,7 +247,7 @@ tagspec(struct scope *s)
next();
attr(NULL, 0);
if (consume(TASSIGN)) {
- e = evalexpr(s);
+ e = eval(condexpr(s));
if (e->kind != EXPRCONST || !(e->type->prop & PROPINT))
error(&tok.loc, "expected integer constant expression");
value = e->u.constant.u;