summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-28 20:56:23 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-28 20:56:23 +0000
commit8d80b96d2aa1f498b80fc19b296ff881185cd363 (patch)
tree4cf0deba03caf18642d7654742228132b15d0094 /numpy/core/src
parent527937eb3df319c23a9ccfe26558739acec14e8c (diff)
downloadnumpy-8d80b96d2aa1f498b80fc19b296ff881185cd363.tar.gz
Fix flags on numpy array scalars for array interface.
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/scalartypes.inc.src2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/src/scalartypes.inc.src b/numpy/core/src/scalartypes.inc.src
index 67b6338be..470de4d53 100644
--- a/numpy/core/src/scalartypes.inc.src
+++ b/numpy/core/src/scalartypes.inc.src
@@ -731,6 +731,8 @@ gentype_struct_get(PyObject *self)
inter->two = 2;
inter->nd = 0;
inter->flags = arr->flags;
+ inter->flags &= ~(UPDATEIFCOPY | OWNDATA);
+ inter->flags |= NPY_NOTSWAPPED;
inter->typekind = arr->descr->kind;
inter->itemsize = arr->descr->elsize;
inter->strides = NULL;