8000 fixup! Amend some silly errors · numpy/numpy@eacdc28 · GitHub
[go: up one dir, main page]

Skip to content

Commit eacdc28

Browse files
committed
fixup! Amend some silly errors
Spotted during code review.
1 parent e897760 commit eacdc28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/core/src/multiarray/compiled_base.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ arr__monotonicity(PyObject *NPY_UNUSED(self), PyObject *args, PyObject *kwds)
252252

253253
if (PyArray_DESCR(array)->f->compare == NULL) {
254254
PyErr_SetString(PyExc_TypeError,
255-
"type does not have compare function");
255+
"dtype %S does not have compare function");
256256
Py_DECREF(array);
257-
return -1;
257+
return NULL;
258258
}
259259

260260
assert(PyArray_TRIVIALLY_ITERABLE(array));

0 commit comments

Comments
 (0)
0