diff options
| -rw-r--r-- | numpy/core/src/multiarray/item_selection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c index 5e70c406a..9fad153a3 100644 --- a/numpy/core/src/multiarray/item_selection.c +++ b/numpy/core/src/multiarray/item_selection.c @@ -2649,6 +2649,7 @@ PyArray_Nonzero(PyArrayObject *self) npy_intp *multi_index_end = multi_index + nonzero_count; npy_intp j = 0; + /* Manually unroll for GCC and maybe other compilers */ while (multi_index + 4 < multi_index_end) { *multi_index = j; multi_index += data[0] != 0; |
