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 34795e2..4033a69 100644
--- a/stmt.c
+++ b/stmt.c
@@ -125,7 +125,7 @@ stmt(struct func *f, struct scope *s)
e = expr(s);
expect(TRPAREN, "after expression");
- if (!(typeprop(e->type) & PROPINT))
+ if (!(e->type->prop & PROPINT))
error(&tok.loc, "controlling expression of switch statement must have integer type");
e = exprconvert(e, typeintpromote(e->type));