diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-23 01:20:28 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-23 01:20:28 +0000 |
commit | 43866c513793b33b0d6ea11e2657d79c2266d359 (patch) | |
tree | d5e1a9d11af55a893ea381d63b0048da69407636 /scipy/base/src/arrayobject.c | |
parent | 69134e103855ba89738f02ef6426e95a276cb8fe (diff) | |
download | numpy-43866c513793b33b0d6ea11e2657d79c2266d359.tar.gz |
Diffstat (limited to 'scipy/base/src/arrayobject.c')
-rw-r--r-- | scipy/base/src/arrayobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scipy/base/src/arrayobject.c b/scipy/base/src/arrayobject.c index d78263153..fdae6fac8 100644 --- a/scipy/base/src/arrayobject.c +++ b/scipy/base/src/arrayobject.c @@ -3061,7 +3061,7 @@ PyArray_New(PyTypeObject *subtype, int nd, intp *dims, int type_num, } else self->flags = (flags & ~UPDATEIFCOPY); - if (PyArray_ISFLEXIBLE(self)) { + if (PyTypeNum_ISFLEXIBLE(type_num)) { if (itemsize < 1) { PyErr_SetString(PyExc_ValueError, "Type must provide an itemsize."); @@ -3072,7 +3072,7 @@ PyArray_New(PyTypeObject *subtype, int nd, intp *dims, int type_num, /* Guarantee that these kind of arrays are never byteswapped unknowingly. */ - if (self->descr->type_num != PyArray_UNICODE) + if (type_num != PyArray_UNICODE) self->flags |= NOTSWAPPED; } else self->itemsize = descr->elsize; |