summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2011-02-10 07:38:13 +0000
committerdas <das@FreeBSD.org>2011-02-10 07:38:13 +0000
commit0b105a7a38c44dbfcff392c9bec097256cd67b0c (patch)
treecc943f5852d3ceff767d5adf2dac17a4227d7457 /lib/msun
parentb0f6e7189c4ef7b5cddb70b4839db87ad4e5d7e8 (diff)
downloadFreeBSD-src-0b105a7a38c44dbfcff392c9bec097256cd67b0c.zip
FreeBSD-src-0b105a7a38c44dbfcff392c9bec097256cd67b0c.tar.gz
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
Diffstat (limited to 'lib/msun')
-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