scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 5a4a8a31d7fd8b2c2a5d19f13a5aa20fb3e4cca1
parent e0d74dfe69664319a05b959acd314490b151ef86
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  6 Mar 2017 14:22:25 +0100

[cc1] Fix correct variable in folduint() DBG statement

In the unsigned case the variable with the value of the union is
u and not i.

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

diff --git a/cc1/fold.c b/cc1/fold.c @@ -231,7 +231,7 @@ folduint(int op, Symbol *res, TUINT l, TUINT r) } res->u.u = u & ones(res->type->size); - DBG("FOLD ui l=%llu %d r=%llu = %llu", l, op, r, i); + DBG("FOLD ui l=%llu %d r=%llu = %llu", l, op, r, u); return 1; sign: