summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-03-30 18:25:12 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-03-30 18:25:12 +0000
commit1b8049926366325a03edbb44cd2cb9fa44ceab7c (patch)
treeae9c95f11dd27717dfab8806fd049febff2638b0 /numpy/core/src/arraymethods.c
parent9c6f421934530cda2e33487bae3295519335597c (diff)
downloadnumpy-1b8049926366325a03edbb44cd2cb9fa44ceab7c.tar.gz
Change 0-d record arrays so that field selection returns a 0-d array and not a scalar.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index fb0e102cd..e2dbaa717 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -264,7 +264,7 @@ array_getfield(PyArrayObject *self, PyObject *args, PyObject *kwds)
PyArray_DescrConverter,
&dtype, &offset)) return NULL;
- return _ARET(PyArray_GetField(self, dtype, offset));
+ return PyArray_GetField(self, dtype, offset);
}