diff options
-rw-r--r-- | src/floatfns.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/floatfns.c b/src/floatfns.c index 2471731c6d8..33186eaf377 100644 --- a/src/floatfns.c +++ b/src/floatfns.c @@ -684,8 +684,9 @@ This is the same as the exponent of a float.") IN_FLOAT (value = logb (f), "logb", arg); #else #ifdef HAVE_FREXP - IN_FLOAT (frexp (f, &value), "logb", arg); - value--; + int ivalue; + IN_FLOAT (frexp (f, &ivalue), "logb", arg); + value = ivalue - 1; #else int i; double d; |