summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/src/umath/ufunc_type_resolution.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/ufunc_type_resolution.c b/numpy/core/src/umath/ufunc_type_resolution.c
index 4e81e929b..2f3cd5582 100644
--- a/numpy/core/src/umath/ufunc_type_resolution.c
+++ b/numpy/core/src/umath/ufunc_type_resolution.c
@@ -1737,7 +1737,7 @@ type_tuple_userloop_type_resolver(PyUFuncObject *self,
/* It works */
case 1:
set_ufunc_loop_data_types(self, op, out_dtype, types);
- return 0;
+ return 1;
/* Didn't match */
case 0:
PyErr_Format(PyExc_TypeError,