scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 34f9e3e9ce1c23c5d0c4d8bf5a9728495604d629
parent 2adcda7668e73c5fd1471f0766fd6fd3ba8d638b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 29 Sep 2015 09:32:40 +0200

Emit enum constants

Diffstat:
cc1/code.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/cc1/code.c b/cc1/code.c @@ -193,6 +193,7 @@ emitconst(Node *np) switch (tp->op) { case PTR: case INT: + case ENUM: u = (tp->sign) ? (TUINT) sym->u.i : sym->u.u; printf("#%c%lX", np->type->letter, sym->u.i & ones(tp->size)); break;