summaryrefslogtreecommitdiff
path: root/scipy/base/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-12-06 05:49:08 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-12-06 05:49:08 +0000
commit4de572b9b4dbaabe1008da8660c96d90c09c81e9 (patch)
tree0ccd9423e689c246b17f73c9a005512f50e6ead5 /scipy/base/src/arraymethods.c
parentf49bd3ec96c15f04406f185a5ad123b897ebe6de (diff)
downloadnumpy-4de572b9b4dbaabe1008da8660c96d90c09c81e9.tar.gz
Fixed-up setfield bug and added offset check for negative numbers.
Diffstat (limited to 'scipy/base/src/arraymethods.c')
-rw-r--r--scipy/base/src/arraymethods.c3
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;