diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-05-10 21:49:22 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-05-10 21:49:22 +0000 |
commit | ae13dc354df5e58fb1417ba80fc9c85242224caf (patch) | |
tree | b5369245d7dfc94a00bc3430ce6ecd3985baef32 /numpy/core/src/arrayobject.c | |
parent | 4474ba35cd167483589e398539007088dd64b9c5 (diff) | |
download | numpy-ae13dc354df5e58fb1417ba80fc9c85242224caf.tar.gz |
Remove wasteful check. Fix problem with PyArray_Transpose for large arrays.
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 e16e92ec8..3b8c71226 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -5368,7 +5368,7 @@ PyArray_NewFromDescr(PyTypeObject *subtype, PyArray_Descr *descr, int nd, return NULL; } size *= dims[i]; - if (size <=0 || size > largest) { + if (size > largest) { PyErr_SetString(PyExc_ValueError, "dimensions too large."); Py_DECREF(descr); |