diff options
Diffstat (limited to 'newlib/libm/mathfp/s_logarithm.c')
-rw-r--r-- | newlib/libm/mathfp/s_logarithm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/mathfp/s_logarithm.c b/newlib/libm/mathfp/s_logarithm.c index 3e07949c8..661dd8818 100644 --- a/newlib/libm/mathfp/s_logarithm.c +++ b/newlib/libm/mathfp/s_logarithm.c @@ -104,7 +104,7 @@ _DEFUN (logarithm, (double, int), if (x <= 0.0) { errno = ERANGE; - return (z_notanum.d); + return (-z_infinity.d); } /* Get the exponent and mantissa where x = f * 2^N. */ |