summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2019-06-22 16:52:48 -0400
committerWarren Weckesser <warren.weckesser@gmail.com>2019-06-22 16:52:48 -0400
commite80d6c3670624d066d558c24f9e7adea39786964 (patch)
tree42a0a2de4e571b3de4aa2dca5d0cbba636a9f34a
parentd037f06c85bf15140084e537d12d6cf9c5cf4fa2 (diff)
downloadnumpy-e80d6c3670624d066d558c24f9e7adea39786964.tar.gz
MAINT: core: Fix a compiler warning.
This change fixes: gcc: numpy/core/src/umath/ufunc_object.c numpy/core/src/umath/ufunc_object.c:657:19: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare] for (i = 0; i < len; i++) { ~ ^ ~~~
-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);