scc

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

commit d2dae10b4e8f2bb930d271a335b3ff16df4c6b75
parent 6c7885a58e1d1202fbad71e09d423f8d637e25f8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 17 Aug 2015 10:32:58 +0200

Fix error in constconv()

It was using sym instead of osym in the case of float conversions.

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

diff --git a/cc1/expr.c b/cc1/expr.c @@ -364,7 +364,7 @@ constconv(Node *np, Type *newtp) } break; case FLOAT: - aux.u.f = (oldtp->sign) ? sym->u.i : sym->u.u; + aux.u.f = (oldtp->sign) ? osym->u.i : osym->u.u; break; default: return NULL;