summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-03-09 07:56:10 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-03-09 07:56:10 +0000
commit3b2ea6cc6a45171f5a8e188bd28766a8a28f0586 (patch)
tree7f6536a58acb68d7b23bddcb4f8ad22b2eb1c08a /numpy/core/src
parent6a2a979fb3e79a30b4a5020490d855a8d3a44d22 (diff)
downloadnumpy-3b2ea6cc6a45171f5a8e188bd28766a8a28f0586.tar.gz
More signed/unsigned comp fixes.
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/umath_ufunc_object.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath_ufunc_object.inc b/numpy/core/src/umath_ufunc_object.inc
index 7544a839d..1198deaef 100644
--- a/numpy/core/src/umath_ufunc_object.inc
+++ b/numpy/core/src/umath_ufunc_object.inc
@@ -3076,7 +3076,7 @@ PyUFunc_GenericReduction(PyUFuncObject *self, PyObject *args,
if (PyTypeNum_ISBOOL(typenum)) {
typenum = PyArray_LONG;
}
- else if (mp->descr->elsize < sizeof(long)) {
+ else if ((size_t)mp->descr->elsize < sizeof(long)) {
if (PyTypeNum_ISUNSIGNED(typenum)) {
typenum = PyArray_ULONG;
}