1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218510

View File

@ -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);