diff options
author | Ganesh Kathiresan <ganesh3597@gmail.com> | 2020-11-11 12:10:12 +0530 |
---|---|---|
committer | Ganesh Kathiresan <ganesh3597@gmail.com> | 2020-11-11 12:10:12 +0530 |
commit | 969aa039d962818459a434ffdd3976865c87afe1 (patch) | |
tree | 07ef366d1c3d9b920141e87c32ba865752f888e9 /numpy/core | |
parent | 90e6cf529e27543a974b53c0aa912329c6374f21 (diff) | |
download | numpy-969aa039d962818459a434ffdd3976865c87afe1.tar.gz |
ENH: Fix breaking case
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/src/umath/loops.c.src | 2 |
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; } } |