From ca90e3eba3c94de3bd13266ccfd9f96dbf23693a Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Mon, 30 Jan 2006 09:20:46 +0000 Subject: Fix-up record arrays that were not of dtype.type record. Don't allow arbitrary objects with dtype attributes as data-type indicators. --- numpy/core/src/multiarraymodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/src') diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c index 1ba38eadf..295924fea 100644 --- a/numpy/core/src/multiarraymodule.c +++ b/numpy/core/src/multiarraymodule.c @@ -3930,12 +3930,12 @@ PyArray_DescrConverter(PyObject *obj, PyArray_Descr **at) } return PY_SUCCEED; } - else { + else goto fail; /*{ *at = _arraydescr_fromobj(obj); if (*at) return PY_SUCCEED; if (PyErr_Occurred()) return PY_FAIL; goto fail; - } + } */ if (PyErr_Occurred()) goto fail; /* -- cgit v1.2.1