aboutsummaryrefslogtreecommitdiff
path: root/math/w_exp10.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_exp10.c')
-rw-r--r--math/w_exp10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/w_exp10.c b/math/w_exp10.c
index 3db012d1f1..17823f57ef 100644
--- a/math/w_exp10.c
+++ b/math/w_exp10.c
@@ -28,7 +28,7 @@ double
__exp10 (double x)
{
double z = __ieee754_exp10 (x);
- if (__builtin_expect (!__finite (z), 0)
+ if (__builtin_expect (!__finite (z) || z == 0, 0)
&& __finite (x) && _LIB_VERSION != _IEEE_)
/* exp10 overflow (46) if x > 0, underflow (47) if x < 0. */
return __kernel_standard (x, x, 46 + !!__signbit (x));