aboutsummaryrefslogtreecommitdiff
path: root/stmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmt.c')
-rw-r--r--stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmt.c b/stmt.c
index a5192c5..e642353 100644
--- a/stmt.c
+++ b/stmt.c
@@ -52,7 +52,7 @@ stmt(struct function *f, struct scope *s)
error(&tok.loc, "'case' label must be in switch");
label[0] = mkblock("switch_case");
funclabel(f, label[0]);
- i = intconstexpr(s);
+ i = intconstexpr(s, true);
switchcase(s->switchcases, i, label[0]);
expect(TCOLON, "after case expression");
stmt(f, s);