This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |