X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fmath%2Fnexttoward.c;h=6f32eca47b6814b03149006ef6f6e063eeec1507;hp=7355f2f19d5afa71fb7a985d72d724ca74d59fd8;hb=662ed2006568f953290f5e0b40cce38252db78f4;hpb=cfbaba79a2dd380e580a247b8fd36af60c878e8f;ds=sidebyside diff --git a/src/math/nexttoward.c b/src/math/nexttoward.c index 7355f2f1..6f32eca4 100644 --- a/src/math/nexttoward.c +++ b/src/math/nexttoward.c @@ -36,7 +36,7 @@ double nexttoward(double x, long double y) e = ux.bits>>52 & 0x7ff; /* raise overflow if ux.value is infinite and x is finite */ if (e == 0x7ff) - 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);