Skip to content

Commit b2c2d19

Browse files
committed
MAINT: Remove unnecessary assert that may trip 32 bit
Mainly to see if this is indeed the problem, but the assert is not necessary, and it might be we end up with the wrong dtype when the input is a compatible (but different) integer already?
1 parent 3ce020d commit b2c2d19

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

numpy/core/src/umath/ufunc_object.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3470,9 +3470,6 @@ PyUFunc_Reduceat(PyUFuncObject *ufunc, PyArrayObject *arr, PyArrayObject *ind,
34703470
}
34713471

34723472
if (need_outer_iterator) {
3473-
/* indices are already passed in correctly */
3474-
assert(PyArray_DESCR(op[2])->type_num == NPY_INTP);
3475-
34763473
PyArray_Descr *op_dtypes[3] = {descrs[0], descrs[1], NULL};
34773474

34783475
npy_uint32 flags = NPY_ITER_ZEROSIZE_OK|

0 commit comments

Comments
 (0)