Subject: Re: PERL and NetBSD 1.3_ALPHA
To: Erik Bertelsen <erik@sockdev.uni-c.dk>
From: Allen Briggs <briggs@puma.macbsd.com>
List: current-users
Date: 11/11/1997 09:02:30
> Between the two calls of a.out, I reinstalled libm in a version, where I
> reverted the change in line 78 made in October, i.e. by removing
> the () that was added to silence the compiler with WARNS=1.
>
> < if((hx-0x3ff00000|lx)==0) return atan(y); /* x=1.0 */
> ---
> > if((hx-(0x3ff00000|lx))==0) return atan(y); /* x=1.0 */
If the comment was "to silence the compiler", then that's the wrong fix,
definitely. '-' has much higher precedence than bit-wise or, so to
silence the compiler without changing the meaning of the code, you are
correct that it should be:
> if (((hx-0x3ff00000)|lx)==0) return atan(y);
-allen
--
Allen Briggs - end killing - briggs@macbsd.com