diff options
Diffstat (limited to 'newlib/libm/mathfp/sf_pow.c')
-rw-r--r-- | newlib/libm/mathfp/sf_pow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libm/mathfp/sf_pow.c b/newlib/libm/mathfp/sf_pow.c index 932e75d..489a71d 100644 --- a/newlib/libm/mathfp/sf_pow.c +++ b/newlib/libm/mathfp/sf_pow.c @@ -29,9 +29,10 @@ float powf (float x, float y) } } - if (x == 0.0 && y <= 0.0) + if (x == 0.0) { - errno = EDOM; + if (y <= 0.0) + errno = EDOM; } else if ((t = y * log (fabsf (x))) >= BIGX) { |