X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnexttowardf.c;h=9a693b1a2da566093014b09e5ed9901dc0405c54;hb=c6383b7b10303457306932584fc23f24b5153a81;hp=8648be6a684a669a2fd3a37784ccdac3733f060a;hpb=6ab8136b4477fd75381c06fa0e7fa93c89c712a1;p=musl diff --git a/src/math/nexttowardf.c b/src/math/nexttowardf.c index 8648be6a..9a693b1a 100644 --- a/src/math/nexttowardf.c +++ b/src/math/nexttowardf.c @@ -28,7 +28,7 @@ float nexttowardf(float x, long double y) e = ux.bits & 0x7f800000; /* raise overflow if ux.value is infinite and x is finite */ if (e == 0x7f800000) - return x + x; + FORCE_EVAL(x+x); /* raise underflow if ux.value is subnormal or zero */ if (e == 0) FORCE_EVAL(x*x + ux.value*ux.value);