summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wiebe <mwiebe@enthought.com>2011-07-18 12:02:27 -0500
committerMark Wiebe <mwiebe@enthought.com>2011-07-19 14:00:28 -0500
commitdb90bf507279dffa23e6546414b82dd28ecaf984 (patch)
tree483b53c4df29ca3a5951a0326740ccbf44f804ae
parent09debad6a877503af4db4c4070fa8bb8e0fca5fd (diff)
downloadnumpy-db90bf507279dffa23e6546414b82dd28ecaf984.tar.gz
WRN: nditer: remove some warnings
-rw-r--r--numpy/core/src/multiarray/nditer_pywrap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/src/multiarray/nditer_pywrap.c b/numpy/core/src/multiarray/nditer_pywrap.c
index 61b5175ac..992d1c7f6 100644
--- a/numpy/core/src/multiarray/nditer_pywrap.c
+++ b/numpy/core/src/multiarray/nditer_pywrap.c
@@ -2011,10 +2011,10 @@ npyiter_seq_length(NewNpyArrayIterObject *self)
}
}
-NPY_NO_EXPORT PyObject *
+NPY_NO_EXPORT PyArrayObject *
npyiter_seq_item(NewNpyArrayIterObject *self, Py_ssize_t i)
{
- PyObject *ret;
+ PyArrayObject *ret;
npy_intp ret_ndim;
npy_intp nop, innerloopsize, innerstride;
@@ -2072,7 +2072,7 @@ npyiter_seq_item(NewNpyArrayIterObject *self, Py_ssize_t i)
}
Py_INCREF(dtype);
- ret = (PyObject *)PyArray_NewFromDescr(&PyArray_Type, dtype,
+ ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, dtype,
ret_ndim, &innerloopsize,
&innerstride, dataptr,
self->writeflags[i] ? NPY_ARRAY_WRITEABLE : 0, NULL);
@@ -2082,7 +2082,7 @@ npyiter_seq_item(NewNpyArrayIterObject *self, Py_ssize_t i)
return NULL;
}
- PyArray_UpdateFlags((PyArrayObject *)ret, NPY_ARRAY_UPDATE_ALL);
+ PyArray_UpdateFlags(ret, NPY_ARRAY_UPDATE_ALL);
return ret;
}