summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorGanesh Kathiresan <ganesh3597@gmail.com>2020-11-11 12:10:12 +0530
committerGanesh Kathiresan <ganesh3597@gmail.com>2020-11-11 12:10:12 +0530
commit969aa039d962818459a434ffdd3976865c87afe1 (patch)
tree07ef366d1c3d9b920141e87c32ba865752f888e9 /numpy/core
parent90e6cf529e27543a974b53c0aa912329c6374f21 (diff)
downloadnumpy-969aa039d962818459a434ffdd3976865c87afe1.tar.gz
ENH: Fix breaking case
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/umath/loops.c.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/loops.c.src b/numpy/core/src/umath/loops.c.src
index a58ee5a78..45a9ccef4 100644
--- a/numpy/core/src/umath/loops.c.src
+++ b/numpy/core/src/umath/loops.c.src
@@ -886,7 +886,7 @@ NPY_NO_EXPORT void
else {
*((@type@ *)op1) = libdivide_@type@_do(in1, &fast_d);
- if((*((@type@ *)op1) <= 0) && (*((@type@ *)op1) * in2 != in1)) {
+ if(((in1 > 0) != (in2 > 0)) && (*((@type@ *)op1) * in2 != in1)) {
*((@type@ *)op1) = *((@type@ *)op1) - 1;
}
}