summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/multiarray/arrayfunction_override.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/arrayfunction_override.c b/numpy/core/src/multiarray/arrayfunction_override.c
index 08d386e8b..3c55e2164 100644
--- a/numpy/core/src/multiarray/arrayfunction_override.c
+++ b/numpy/core/src/multiarray/arrayfunction_override.c
@@ -474,13 +474,13 @@ fix_name_if_typeerror(PyArray_ArrayFunctionDispatcherObject *self)
}
Py_ssize_t cmp = PyUnicode_Tailmatch(
- message, self->dispatcher_name, 0, -1, 0);
+ message, self->dispatcher_name, 0, -1, -1);
if (cmp <= 0) {
Py_DECREF(message);
goto restore_error;
}
Py_SETREF(message, PyUnicode_Replace(
- message, self->dispatcher_name, self->public_name, 1));
+ message, self->dispatcher_name, self->public_name, 1));
if (message == NULL) {
goto restore_error;
}