[PATCH] XFmode nextafterl typo

Jakub Jelinek jakub@redhat.com
Tue Oct 23 23:59:00 GMT 2001


Hi!

This BSD/libm parenthesis style really leads to things like this:

2001-10-24  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/ieee754/ldbl-97/s_nextafterl.c (__nextafterl): Add missing
	parenthesis.  Patch by Will Cohen <wcohen@redhat.com>.

--- libc/sysdeps/ieee754/ldbl-96/s_nextafterl.c.jj	Mon Jun 25 10:34:49 2001
+++ libc/sysdeps/ieee754/ldbl-96/s_nextafterl.c	Wed Oct 24 09:01:08 2001
@@ -43,8 +43,8 @@ static char rcsid[] = "$NetBSD: $";
 	ix = esx&0x7fff;		/* |x| */
 	iy = esy&0x7fff;		/* |y| */
 
-	if(((ix==0x7fff)&&((hx|lx)!=0) ||   /* x is nan */
-	   ((iy==0x7fff)&&((hy|ly)!=0))     /* y is nan */
+	if(((ix==0x7fff)&&((hx|lx)!=0)) ||   /* x is nan */
+	   ((iy==0x7fff)&&((hy|ly)!=0)))     /* y is nan */
 	   return x+y;
 	if(x==y) return y;		/* x=y, return y */
 	if((ix|hx|lx)==0) {			/* x == 0 */

	Jakub



More information about the Libc-hacker mailing list