diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-08-09 18:53:18 -0500 |
|---|---|---|
| committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-10-11 19:32:34 -0500 |
| commit | b2c2d1920cca28e9b8f76d96ff9f2711ec7d5699 (patch) | |
| tree | feb1fef2acfc0491778d26ad976d869b04732ab4 | |
| parent | 3ce020dd1465b055555b957b30115912def68e3f (diff) | |
| download | numpy-b2c2d1920cca28e9b8f76d96ff9f2711ec7d5699.tar.gz | |
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?
| -rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 8c6d9bd64..1bdac0933 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -3470,9 +3470,6 @@ PyUFunc_Reduceat(PyUFuncObject *ufunc, PyArrayObject *arr, PyArrayObject *ind, } if (need_outer_iterator) { - /* indices are already passed in correctly */ - assert(PyArray_DESCR(op[2])->type_num == NPY_INTP); - PyArray_Descr *op_dtypes[3] = {descrs[0], descrs[1], NULL}; npy_uint32 flags = NPY_ITER_ZEROSIZE_OK| |
