From 4de572b9b4dbaabe1008da8660c96d90c09c81e9 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Tue, 6 Dec 2005 05:49:08 +0000 Subject: Fixed-up setfield bug and added offset check for negative numbers. --- scipy/base/src/arraymethods.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scipy/base/src/arraymethods.c') diff --git a/scipy/base/src/arraymethods.c b/scipy/base/src/arraymethods.c index 48979599e..24d81bfd1 100644 --- a/scipy/base/src/arraymethods.c +++ b/scipy/base/src/arraymethods.c @@ -322,7 +322,8 @@ PyArray_SetField(PyArrayObject *self, PyArray_Descr *dtype, if (ret == NULL) return -1; Py_INCREF(self); ((PyArrayObject *)ret)->base = (PyObject *)self; - + + PyArray_UpdateFlags((PyArrayObject *)ret, UPDATE_ALL_FLAGS); retval = PyArray_CopyObject((PyArrayObject *)ret, val); Py_DECREF(ret); return retval; -- cgit v1.2.1