diff options
author | David Schultz <das@FreeBSD.org> | 2005-01-23 15:46:22 +0000 |
---|---|---|
committer | David Schultz <das@FreeBSD.org> | 2005-01-23 15:46:22 +0000 |
commit | 3c4d0a09733f1a362fb01a05dbebca6ad0ac3c67 (patch) | |
tree | 32ab830b0bb52197641e7251209ffd42a3b9083e /lib/msun/src/s_nextafter.c | |
parent | b8a3e40819d0103bc0928251a73dce2ef577ee57 (diff) | |
download | src-test2-3c4d0a09733f1a362fb01a05dbebca6ad0ac3c67.tar.gz src-test2-3c4d0a09733f1a362fb01a05dbebca6ad0ac3c67.zip |
Notes
Diffstat (limited to 'lib/msun/src/s_nextafter.c')
-rw-r--r-- | lib/msun/src/s_nextafter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/s_nextafter.c b/lib/msun/src/s_nextafter.c index f8f15fe470ff..a5a883b9b603 100644 --- a/lib/msun/src/s_nextafter.c +++ b/lib/msun/src/s_nextafter.c @@ -38,7 +38,7 @@ nextafter(double x, double y) if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */ ((iy>=0x7ff00000)&&((iy-0x7ff00000)|ly)!=0)) /* y is nan */ return x+y; - if(x==y) return x; /* x=y, return x */ + if(x==y) return y; /* x=y, return x */ if((ix|lx)==0) { /* x == 0 */ INSERT_WORDS(x,hy&0x80000000,1); /* return +-minsubnormal */ y = x*x; |