Skip to content

Commit

Permalink
Update numpy/core/src/multiarray/mapping.c
Browse files Browse the repository at this point in the history
  • Loading branch information
seberg authored and charris committed Jan 29, 2021
1 parent 436aec5 commit f3070c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions numpy/core/src/multiarray/mapping.c
Expand Up @@ -2371,8 +2371,6 @@ mapiter_fill_info(PyArrayMapIterObject *mit, npy_index_info *indices,

/* Before contunuing, ensure that there are not too fancy indices */
if (indices[i].type & HAS_FANCY) {
assert(indices[i].type == HAS_FANCY ||
indices[i].type == HAS_0D_BOOL);
if (NPY_UNLIKELY(j >= NPY_MAXDIMS)) {
PyErr_Format(PyExc_IndexError,
"too many advanced (array) indices. This probably "
Expand Down

0 comments on commit f3070c5

Please sign in to comment.