diff options
Diffstat (limited to 'newlib/libm/mathfp/sf_logarithm.c')
-rw-r--r-- | newlib/libm/mathfp/sf_logarithm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/mathfp/sf_logarithm.c b/newlib/libm/mathfp/sf_logarithm.c index 224482f13..b8564c14c 100644 --- a/newlib/libm/mathfp/sf_logarithm.c +++ b/newlib/libm/mathfp/sf_logarithm.c @@ -42,7 +42,7 @@ _DEFUN (logarithmf, (float, int), if (x <= 0.0) { errno = ERANGE; - return (z_notanum_f.f); + return (-z_infinity_f.f); } /* Get the exponent and mantissa where x = f * 2^N. */ |