diff options
Diffstat (limited to 'math/e_scalb.c')
-rw-r--r-- | math/e_scalb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/math/e_scalb.c b/math/e_scalb.c index bddedfa032..146d49e1c3 100644 --- a/math/e_scalb.c +++ b/math/e_scalb.c @@ -50,7 +50,7 @@ __ieee754_scalb (double x, double fn) return x; return x / -fn; } - if (__glibc_unlikely ((double) (int) fn != fn)) + if (__glibc_unlikely (fabs (fn) >= 0x1p31 || (double) (int) fn != fn)) return invalid_fn (x, fn); return __scalbn (x, (int) fn); |