aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/decl.c b/decl.c
index f9640fc..67bb361 100644
--- a/decl.c
+++ b/decl.c
@@ -185,6 +185,7 @@ tagspec(struct scope *s)
t = mktype(kind, NULL);
if (kind == TYPEBASIC) {
*t = typeint;
+ t->basic.kind = BASICENUM;
} else {
t->repr = &i64; // XXX
t->size = 0;