Skip to content

Commit

Permalink
fix error in check
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Nov 26, 2023
1 parent 9653fe5 commit 47ab51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/src/umath/wrapping_array_method.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ PyUFunc_AddWrappingLoop(PyObject *ufunc_obj,
continue;
}
wrapped_meth = (PyArrayMethodObject *)PyTuple_GetItem(item, 1);
if (!PyObject_TypeCheck((PyObject *)wrapped_meth, &PyArrayMethod_Type)) {
if (!PyObject_TypeCheck((PyObject *)wrapped_meth, PyArrayMethod_Type)) {
PyErr_SetString(PyExc_TypeError,
"Matching loop was not an ArrayMethod.");
goto finish;
Expand Down

0 comments on commit 47ab51b

Please sign in to comment.