[hackers] [scc] Fix mulf() || Roberto E. Vargas Caballero
commit 4957aa7a96d1a90272f7efd1344800d476ab9aac
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Jan 6 20:09:56 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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 ||
Received on Fri Jan 08 2016 - 13:13:57 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 08 2016 - 13:24:15 CET