From 0b105a7a38c44dbfcff392c9bec097256cd67b0c Mon Sep 17 00:00:00 2001 From: das Date: Thu, 10 Feb 2011 07:38:13 +0000 Subject: Fix a bug where the wrong argument was passed to INSERT_WORDS(). This bug results in a type mismatch that happens to be harmless because of the way INSERT_WORDS() works. Submitted by: bde --- lib/msun/src/s_nexttoward.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/msun') 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); -- cgit v1.1