Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/mathfp/sf_pow.c')
-rw-r--r--newlib/libm/mathfp/sf_pow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/newlib/libm/mathfp/sf_pow.c b/newlib/libm/mathfp/sf_pow.c
index 489a71dd0..932e75dbb 100644
--- a/newlib/libm/mathfp/sf_pow.c
+++ b/newlib/libm/mathfp/sf_pow.c
@@ -29,10 +29,9 @@ float powf (float x, float 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 (fabsf (x))) >= BIGX)
{