diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-09-01 06:09:52 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-09-01 06:09:52 +0000 |
commit | f4c25ba96601a2b22db959462fbed0e4f7206a97 (patch) | |
tree | 3386ee69766d3d15e9f6f9e7b1c0ac598b7da169 /numpy/core/src/arrayobject.c | |
parent | 8a53914ded66488c093c48d20a29d475c1a3f79d (diff) | |
download | numpy-f4c25ba96601a2b22db959462fbed0e4f7206a97.tar.gz |
Fix default type of empty array. Fix test for strtod on Python 2.3
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 3adc7d75a..c8a750a38 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -6944,7 +6944,7 @@ _array_find_type(PyObject *op, PyArray_Descr *minitype, int max) } if (l == 0 && minitype->type_num == PyArray_BOOL) { Py_DECREF(minitype); - minitype = PyArray_DescrFromType(PyArray_INTP); + minitype = PyArray_DescrFromType(PyArray_DEFAULT); } while (--l >= 0) { PyArray_Descr *newtype; |