From ad1f3dbd434e03db560406afe8363599aac42c79 Mon Sep 17 00:00:00 2001 From: sasha Date: Fri, 3 Feb 2006 19:01:14 +0000 Subject: do not ignore strides in ndarray() when no buffer is provided - raise an error --- numpy/core/src/arrayobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/arrayobject.c') 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); -- cgit v1.2.1