diff options
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/src/multiarray/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/common.c b/numpy/core/src/multiarray/common.c index 84ad04723..2e51cee7e 100644 --- a/numpy/core/src/multiarray/common.c +++ b/numpy/core/src/multiarray/common.c @@ -440,7 +440,6 @@ PyArray_DTypeFromObjectHelper(PyObject *obj, int maxdims, return 0; } - /* Recursive case, first check the sequence contains only one type */ /* * The C-API recommends calling PySequence_Fast before any of the other * PySequence_Fast* functions. This is required for PyPy @@ -449,6 +448,8 @@ PyArray_DTypeFromObjectHelper(PyObject *obj, int maxdims, if (seq == NULL) { goto fail; } + + /* Recursive case, first check the sequence contains only one type */ size = PySequence_Fast_GET_SIZE(seq); /* objects is borrowed, do not release seq */ objects = PySequence_Fast_ITEMS(seq); |