diff options
author | Travis Oliphant <oliphant@enthought.com> | 2008-05-13 16:40:19 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2008-05-13 16:40:19 +0000 |
commit | e3d0fec968a54a144de203a25d52e059b7447065 (patch) | |
tree | c731f0ccabad52fc729e5b43e54d1360d092b5eb /numpy/core/src/arrayobject.c | |
parent | b6ef006ba71899914ddb2867eba0a95d081c937d (diff) | |
download | numpy-e3d0fec968a54a144de203a25d52e059b7447065.tar.gz |
Fix ticket #791.
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-" \ |