Skip to content

Commit 4b4b41c

Browse files
authored
Merge pull request #178 from JuliaLang/aa/upstream
msun: signed overflow in atan2
2 parents a844d58 + 787652b commit 4b4b41c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/e_atan2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ __ieee754_atan2(double y, double x)
7171
if(((ix|((lx|-lx)>>31))>0x7ff00000)||
7272
((iy|((ly|-ly)>>31))>0x7ff00000)) /* x or y is NaN */
7373
return x+y;
74-
if(((hx-0x3ff00000)|lx)==0) return atan(y); /* x=1.0 */
74+
if(hx==0x3ff00000&&lx==0) return atan(y); /* x=1.0 */
7575
m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */
7676

7777
/* when y = 0 */

0 commit comments

Comments
 (0)