diff options
author | mattip <matti.picus@gmail.com> | 2018-12-13 08:02:51 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2018-12-13 08:02:51 +0200 |
commit | 7dcee0028e31b34a0c44767b7b1c19d45ef18cff (patch) | |
tree | fa88d5911da4a8d335dfc3a4f8abc938ed77f2bf /numpy/core | |
parent | 508c0f44ef1c25c63a7cefc3b854fd0048c9196f (diff) | |
download | numpy-7dcee0028e31b34a0c44767b7b1c19d45ef18cff.tar.gz |
DOC: rearrange comment sequence from review
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); |