summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-06-23 09:24:23 +0300
committerGitHub <noreply@github.com>2019-06-23 09:24:23 +0300
commitc8ac5238ae78b4a81b3f6477fc7d656dd5e77d13 (patch)
tree98ad366570e2334e18358fedad7fe791eada8e5f
parentccd206e30ca798ae5dafa70e1f7ab240f3b75424 (diff)
parente80d6c3670624d066d558c24f9e7adea39786964 (diff)
downloadnumpy-c8ac5238ae78b4a81b3f6477fc7d656dd5e77d13.tar.gz
Merge pull request #13821 from WarrenWeckesser/fix-warning
MAINT: core: Fix a compiler warning.
-rw-r--r--numpy/core/src/umath/ufunc_object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c
index 081c06813..cb24f2a70 100644
--- a/numpy/core/src/umath/ufunc_object.c
+++ b/numpy/core/src/umath/ufunc_object.c
@@ -654,8 +654,8 @@ _parse_signature(PyUFuncObject *ufunc, const char *signature)
PyErr_NoMemory();
goto fail;
}
- for (i = 0; i < len; i++) {
- ufunc->core_dim_flags[i] = 0;
+ for (size_t j = 0; j < len; j++) {
+ ufunc->core_dim_flags[j] = 0;
}
i = _next_non_white_space(signature, 0);