summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2011-02-10 07:38:38 +0000
committerdas <das@FreeBSD.org>2011-02-10 07:38:38 +0000
commit8a0b136ad68c9e1575d521773de819e8a76392e5 (patch)
treee51dd9f205c6a8bb1d49558516c99de5d077a91c /lib/msun
parent0b105a7a38c44dbfcff392c9bec097256cd67b0c (diff)
downloadFreeBSD-src-8a0b136ad68c9e1575d521773de819e8a76392e5.zip
FreeBSD-src-8a0b136ad68c9e1575d521773de819e8a76392e5.tar.gz
Fix a bug where the wrong argument was passed to SET_FLOAT_WORD().
This bug results in a type mismatch that happens to be harmless because of the way SET_FLOAT_WORD() works. Submitted by: bde
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/src/s_nexttowardf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/s_nexttowardf.c b/lib/msun/src/s_nexttowardf.c
index 7c0d7b1..9ddfff9 100644
--- a/lib/msun/src/s_nexttowardf.c
+++ b/lib/msun/src/s_nexttowardf.c
@@ -50,8 +50,8 @@ nexttowardf(float x, long double y)
if(ix<0x00800000) { /* underflow */
t = x*x;
if(t!=x) { /* raise underflow flag */
- SET_FLOAT_WORD(y,hx);
- return y;
+ SET_FLOAT_WORD(x,hx);
+ return x;
}
}
SET_FLOAT_WORD(x,hx);
OpenPOWER on IntegriCloud