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 4e148ac..228c776 100644
--- a/decl.c
+++ b/decl.c
@@ -274,6 +274,7 @@ tagspec(struct scope *s)
assert(i < LEN(inttypes));
}
d = mkdecl(name, DECLCONST, et, QUALNONE, LINKNONE);
+ d->u.enumconst = value;
d->value = mkintconst(value);
d->next = enumconsts;
enumconsts = d;