summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/ufuncobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/src/ufuncobject.c b/numpy/core/src/ufuncobject.c
index 32ff5308b..b7697502d 100644
--- a/numpy/core/src/ufuncobject.c
+++ b/numpy/core/src/ufuncobject.c
@@ -803,6 +803,7 @@ extract_specified_loop(PyUFuncObject *self, int *arg_types,
else if (rtypenums[0] == funcdata->arg_types[self->nin]) {
i = nargs;
}
+ else i = -1;
if (i == nargs) {
*function = funcdata->func;
*data = funcdata->data;
@@ -831,6 +832,7 @@ extract_specified_loop(PyUFuncObject *self, int *arg_types,
else if (rtypenums[0] == self->types[j*nargs+self->nin]) {
i = nargs;
}
+ else i = -1;
if (i == nargs) {
*function = self->functions[j];
*data = self->data[j];