8000 Merge pull request #6397 from charris/backport-gh-6346 · numpy/numpy@9f0ae61 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f0ae61

Browse files
committed
Merge pull request #6397 from charris/backport-gh-6346
Backport gh-6346.
2 parents 72991a5 + fa185c7 commit 9f0ae61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/src/npymath/npy_math.c.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ double npy_atan2(double y, double x)
130130
return npy_atan(y);
131131
}
132132

133-
m = 2 * npy_signbit(x) + npy_signbit(y);
133+
m = 2 * (npy_signbit((x)) != 0) + (npy_signbit((y)) != 0);
134134
if (y == 0.0) {
135135
switch(m) {
136136
case 0:

0 commit comments

Comments
 (0)
0