diff options
author | David Cournapeau <cournape@gmail.com> | 2009-08-30 06:31:50 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-08-30 06:31:50 +0000 |
commit | cb955806a508ec15ebb83fa358f63a9dc67f7a16 (patch) | |
tree | d254c0dfd67e38fd7fe7c52db98534102ff112f3 /numpy | |
parent | 1df22350f35b957cff5d29ea1ae5299946a5295b (diff) | |
download | numpy-cb955806a508ec15ebb83fa358f63a9dc67f7a16.tar.gz |
Fix C99-style variable declaration.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 94152ccb7..22f9f2f7f 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -1486,13 +1486,14 @@ construct_arrays(PyUFuncLoopObject *loop, PyObject *args, PyArrayObject **mps, for (i = 0; i < loop->ufunc->nout; i++) { int j = loop->ufunc->nin+i; PyObject *wrap; + PyObject *res; wrap = wraparr[i]; if (wrap != NULL) { if (wrap == Py_None) { Py_DECREF(wrap); continue; } - PyObject *res = PyObject_CallFunction(wrap, "O(OOi)", + res = PyObject_CallFunction(wrap, "O(OOi)", mps[j], loop->ufunc, args, i); Py_DECREF(wrap); if ((res == NULL) || (res == Py_None)) { |