summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/msun/src/s_nexttoward.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/s_nexttoward.c b/lib/msun/src/s_nexttoward.c
index 52ae1ac..b2a50d3 100644
--- a/lib/msun/src/s_nexttoward.c
+++ b/lib/msun/src/s_nexttoward.c
@@ -63,8 +63,8 @@ nexttoward(double x, long double y)
if(ix<0x00100000) { /* underflow */
t = x*x;
if(t!=x) { /* raise underflow flag */
- INSERT_WORDS(y,hx,lx);
- return y;
+ INSERT_WORDS(x,hx,lx);
+ return x;
}
}
INSERT_WORDS(x,hx,lx);
OpenPOWER on IntegriCloud