commit 4957aa7a96d1a90272f7efd1344800d476ab9aac
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Wed Jan 6 20:09:56 2016 +0100
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Wed Jan 6 20:09:56 2016 +0100
Fix mulf()
This function was using the limits from inteher types
instead of taking the float types.
diff --git a/cc1/fold.c b/cc1/fold.c
index 66824c4..e20bf78 100644
--- 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 ||