From 1b8049926366325a03edbb44cd2cb9fa44ceab7c Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 30 Mar 2007 18:25:12 +0000 Subject: Change 0-d record arrays so that field selection returns a 0-d array and not a scalar. --- numpy/core/src/arraymethods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/arraymethods.c') 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); } -- cgit v1.2.1