diff options
Diffstat (limited to 'scipy/base/src/arraymethods.c')
-rw-r--r-- | scipy/base/src/arraymethods.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |