diff options
author | sasha <sasha@localhost> | 2006-02-03 19:01:14 +0000 |
---|---|---|
committer | sasha <sasha@localhost> | 2006-02-03 19:01:14 +0000 |
commit | ad1f3dbd434e03db560406afe8363599aac42c79 (patch) | |
tree | b6d59f75dd6dec70e6be2805e815a730f41e9546 /numpy/core/src/arrayobject.c | |
parent | 1efcf75ddc2001780843b24e311d2479476a7ed5 (diff) | |
download | numpy-ad1f3dbd434e03db560406afe8363599aac42c79.tar.gz |
do not ignore strides in ndarray() when no buffer is provided - raise an error
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 961304e68..3a9a19860 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -4082,7 +4082,7 @@ array_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) PyArray_NewFromDescr(subtype, descr, (int)dims.len, dims.ptr, - NULL, NULL, fortran, NULL); + strides.ptr, NULL, fortran, NULL); if (ret == NULL) {descr=NULL;goto fail;} if (type_num == PyArray_OBJECT) { /* place Py_None */ PyArray_FillObjectArray(ret, Py_None); |