summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/npymath/npy_math.c.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/npymath/npy_math.c.src b/numpy/core/src/npymath/npy_math.c.src
index b7f28bb39..7f62810d5 100644
--- a/numpy/core/src/npymath/npy_math.c.src
+++ b/numpy/core/src/npymath/npy_math.c.src
@@ -130,7 +130,7 @@ double npy_atan2(double y, double x)
return npy_atan(y);
}
- m = 2 * npy_signbit(x) + npy_signbit(y);
+ m = 2 * (npy_signbit((x)) != 0) + (npy_signbit((y)) != 0);
if (y == 0.0) {
switch(m) {
case 0: