summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2008-05-13 16:40:19 +0000
committerTravis Oliphant <oliphant@enthought.com>2008-05-13 16:40:19 +0000
commite3d0fec968a54a144de203a25d52e059b7447065 (patch)
treec731f0ccabad52fc729e5b43e54d1360d092b5eb /numpy/core/src/arrayobject.c
parentb6ef006ba71899914ddb2867eba0a95d081c937d (diff)
downloadnumpy-e3d0fec968a54a144de203a25d52e059b7447065.tar.gz
Fix ticket #791.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c2
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-" \