diff options
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 867b32b65..51abf8e02 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -1976,7 +1976,7 @@ PyArray_ToList(PyArrayObject *self) v=(PyArrayObject *)array_big_item(self, i); } else { - v = PySequence_GetItem((PyObject *)self, i); + v = (PyArrayObject *)PySequence_GetItem((PyObject *)self, i); if ((!PyArray_Check(v)) || (v->nd >= self->nd)) { PyErr_SetString(PyExc_RuntimeError, "array_item not returning smaller-" \ |