diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/npymath/npy_math.c.src | 2 |
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 4af5a8859..e6eba425f 100644 --- a/numpy/core/src/npymath/npy_math.c.src +++ b/numpy/core/src/npymath/npy_math.c.src @@ -100,7 +100,7 @@ double npy_hypot(double x, double y) /* Handle the case where x or y is a NaN */ if (npy_isnan(x * y)) { - if (npy_isinf(x) | npy_isinf(y)) { + if (npy_isinf(x) || npy_isinf(y)) { return NPY_INFINITY; } else { return NPY_NAN; |