diff options
author | Mark Wiebe <mwiebe@enthought.com> | 2011-07-18 12:02:27 -0500 |
---|---|---|
committer | Mark Wiebe <mwiebe@enthought.com> | 2011-07-19 14:00:28 -0500 |
commit | db90bf507279dffa23e6546414b82dd28ecaf984 (patch) | |
tree | 483b53c4df29ca3a5951a0326740ccbf44f804ae | |
parent | 09debad6a877503af4db4c4070fa8bb8e0fca5fd (diff) | |
download | numpy-db90bf507279dffa23e6546414b82dd28ecaf984.tar.gz |
WRN: nditer: remove some warnings
-rw-r--r-- | numpy/core/src/multiarray/nditer_pywrap.c | 8 |
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; } |