summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2008-03-22 01:00:25 +0000
committerTravis Oliphant <oliphant@enthought.com>2008-03-22 01:00:25 +0000
commite949b18d828d799619fabd27476e05edf35d0d02 (patch)
treec31341c089fb3077e42999ffeb024790708e1b90 /numpy
parentbe077dafb8ed2b9dc30f925868612cf7d7f56a2b (diff)
downloadnumpy-e949b18d828d799619fabd27476e05edf35d0d02.tar.gz
Fix ticket #670.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/ufuncobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/ufuncobject.c b/numpy/core/src/ufuncobject.c
index 4f5b29825..8a4f828d8 100644
--- a/numpy/core/src/ufuncobject.c
+++ b/numpy/core/src/ufuncobject.c
@@ -3440,7 +3440,7 @@ typedef struct {
static int
cmp_arg_types(int *arg1, int *arg2, int n)
{
- while (n--) {
+ for (;n>0; n--, arg1++, arg2++) {
if (PyArray_EquivTypenums(*arg1, *arg2)) continue;
if (PyArray_CanCastSafely(*arg1, *arg2))
return -1;