about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-11-19 23:42:16 +0000
committerUlrich Drepper <drepper@redhat.com>1997-11-19 23:42:16 +0000
commit6de37310f705b2cdf8dcdb91e4ee6211cf3b2304 (patch)
tree52bd7ce7b841da7dcc1a3011c863cfe904186574
parent7be6856d20da8bb180a99f7739077144fb138571 (diff)
downloadglibc-6de37310f705b2cdf8dcdb91e4ee6211cf3b2304.tar.gz
glibc-6de37310f705b2cdf8dcdb91e4ee6211cf3b2304.tar.xz
glibc-6de37310f705b2cdf8dcdb91e4ee6211cf3b2304.zip
Correct result value for x==y.
-rw-r--r--sysdeps/libm-i387/s_nextafterl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/libm-i387/s_nextafterl.c b/sysdeps/libm-i387/s_nextafterl.c
index b574430832..4596c6b93c 100644
--- a/sysdeps/libm-i387/s_nextafterl.c
+++ b/sysdeps/libm-i387/s_nextafterl.c
@@ -49,7 +49,7 @@ static char rcsid[] = "$NetBSD: $";
 	if(((ix==0x7fff)&&(((hx|lx)|-(hx|lx))&hx)>>31!=0) ||   /* x is nan */
 	   ((iy==0x7fff)&&(((hy|ly)|-(hy|ly))&hy)>>31!=0))     /* y is nan */
 	   return x+y;
-	if(x==y) return x;		/* x=y, return x */
+	if(x==y) return y;		/* x=y, return y */
 	if((ix|hx|lx)==0) {			/* x == 0 */
 	    SET_LDOUBLE_WORDS(x,esx&0x8000,0,1);/* return +-minsubnormal */
 	    y = x*x;