diff options
author | das <das@FreeBSD.org> | 2011-02-10 07:38:38 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2011-02-10 07:38:38 +0000 |
commit | 8a0b136ad68c9e1575d521773de819e8a76392e5 (patch) | |
tree | e51dd9f205c6a8bb1d49558516c99de5d077a91c /lib/msun | |
parent | 0b105a7a38c44dbfcff392c9bec097256cd67b0c (diff) | |
download | FreeBSD-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.c | 4 |
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); |