scc

suckless C compiler
git clone git://git.suckless.org/scc
Log | Files | Refs | README | LICENSE

commit c157d03141d8f99ff753af8b72b6dff6cf2ac4bc
parent 995a0fbf451fbaa189f000c809db92e885f2a512
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  6 Mar 2017 13:40:31 +0100

[cc1] Use u variable in emitconst()

This variable was used to avoid type punning in emitconst(),
but due to a error at the end the type punning was done.

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

diff --git a/cc1/code.c b/cc1/code.c @@ -224,7 +224,7 @@ emitconst(Node *np) fprintf(outfp, "#%c%llX", np->type->letter, - (long long) sym->u.i & ones(tp->size)); + (long long) u & ones(tp->size)); break; default: abort();