about summary refs log tree commit diff
path: root/math/e_scalbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/e_scalbf.c')
-rw-r--r--math/e_scalbf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/e_scalbf.c b/math/e_scalbf.c
index 319752c993..3f2e853353 100644
--- a/math/e_scalbf.c
+++ b/math/e_scalbf.c
@@ -50,7 +50,7 @@ __ieee754_scalbf (float x, float fn)
 	return x;
       return x / -fn;
     }
-  if (__glibc_unlikely ((float) (int) fn != fn))
+  if (__glibc_unlikely (fabsf (fn) >= 0x1p31f || (float) (int) fn != fn))
     return invalid_fn (x, fn);
 
   return __scalbnf (x, (int) fn);