scc

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

commit 4957aa7a96d1a90272f7efd1344800d476ab9aac
parent 6fe9948519b756f46cb42fa132b158541f024222
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  6 Jan 2016 20:09:56 +0100

Fix mulf()

This function was using the limits from inteher types
instead of taking the float types.

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

diff --git a/cc1/fold.c b/cc1/fold.c @@ -87,7 +87,7 @@ static bool mulf(TFLOAT l, TFLOAT r, Type *tp) { struct limits *lim = getlimits(tp); - TFLOAT max = lim->max.i, min = lim->min.i; + TFLOAT max = lim->max.f, min = lim->min.f; if (l > -1 && l <= 1 || r > -1 && r <= 1 ||