diff options
Diffstat (limited to 'newlib/libm/mathfp/s_pow.c')
-rw-r--r-- | newlib/libm/mathfp/s_pow.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/newlib/libm/mathfp/s_pow.c b/newlib/libm/mathfp/s_pow.c index 90d9d0b5f..3514510d0 100644 --- a/newlib/libm/mathfp/s_pow.c +++ b/newlib/libm/mathfp/s_pow.c @@ -75,10 +75,9 @@ double pow (double x, double y) } } - if (x == 0.0) + if (x == 0.0 && y <= 0.0) { - if (y <= 0.0) - errno = EDOM; + errno = EDOM; } else if ((t = y * log (fabs (x))) >= BIGX) { |