diff options
| author | Travis Oliphant <oliphant@enthought.com> | 2006-03-06 04:23:46 +0000 |
|---|---|---|
| committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-06 04:23:46 +0000 |
| commit | f1fb5f8d6b3fe27dae96acd274fed9bafa8977c7 (patch) | |
| tree | a821e1236b9503ecadcfc72fa8f5caea2a4568ed | |
| parent | 07bdddd17c9953d9ce4e5ebe1cceda9e21eb855d (diff) | |
| download | numpy-f1fb5f8d6b3fe27dae96acd274fed9bafa8977c7.tar.gz | |
A little re-ordering.
| -rw-r--r-- | numpy/core/src/arrayobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index e7aad394a..7b13f5a4e 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -5429,11 +5429,11 @@ Array_FromScalar(PyObject *op, PyArray_Descr *typecode) if (itemsize == 0 && PyTypeNum_ISEXTENDED(type)) { itemsize = PyObject_Length(op); if (type == PyArray_UNICODE) itemsize *= 4; - } - if (itemsize != typecode->elsize) { - PyArray_DESCR_REPLACE(typecode); - typecode->elsize = itemsize; + if (itemsize != typecode->elsize) { + PyArray_DESCR_REPLACE(typecode); + typecode->elsize = itemsize; + } } ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, typecode, |
