diff options
Diffstat (limited to 'math/s_nexttowardf.c')
-rw-r--r-- | math/s_nexttowardf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/math/s_nexttowardf.c b/math/s_nexttowardf.c index 06e1bb10cb..06350d47bf 100644 --- a/math/s_nexttowardf.c +++ b/math/s_nexttowardf.c @@ -59,8 +59,8 @@ float __nexttowardf(float x, long double y) } hy = hx&0x7f800000; if(hy>=0x7f800000) { - x = math_narrow_eval (x+x); /* overflow */ - return x; + float u = x+x; /* overflow */ + math_force_eval (u); } if(hy<0x00800000) { float u = x*x; /* underflow */ |