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
This commit is contained in:
David Schultz 2011-02-10 07:38:13 +00:00
parent e044d80d08
commit 5ffd745ec2

View File

@ -63,8 +63,8 @@ nexttoward(double x, long double y)
if(ix<0x00100000) { /* underflow */ if(ix<0x00100000) { /* underflow */
t = x*x; t = x*x;
if(t!=x) { /* raise underflow flag */ if(t!=x) { /* raise underflow flag */
INSERT_WORDS(y,hx,lx); INSERT_WORDS(x,hx,lx);
return y; return x;
} }
} }
INSERT_WORDS(x,hx,lx); INSERT_WORDS(x,hx,lx);