Skip to content

Commit 2db65c9

Browse files
committed
Addressed reviews
1 parent 68dfa4b commit 2db65c9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

numpy/core/src/multiarray/methods.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -859,16 +859,16 @@ array_astype(PyArrayObject *self,
859859
* can skip the copy.
860860
*/
861861
if (forcecopy != NPY_COPY_ALWAYS &&
862-
(order == NPY_KEEPORDER ||
863-
(order == NPY_ANYORDER &&
864-
(PyArray_IS_C_CONTIGUOUS(self) ||
865-
PyArray_IS_F_CONTIGUOUS(self))) ||
866-
(order == NPY_CORDER &&
867-
PyArray_IS_C_CONTIGUOUS(self)) ||
868-
(order == NPY_FORTRANORDER &&
869-
PyArray_IS_F_CONTIGUOUS(self))) &&
870-
(subok || PyArray_CheckExact(self)) &&
871-
PyArray_EquivTypes(dtype, PyArray_DESCR(self))) {
862+
(order == NPY_KEEPORDER ||
863+
(order == NPY_ANYORDER &&
864+
(PyArray_IS_C_CONTIGUOUS(self) ||
865+
PyArray_IS_F_CONTIGUOUS(self))) ||
866+
(order == NPY_CORDER &&
867+
PyArray_IS_C_CONTIGUOUS(self)) ||
868+
(order == NPY_FORTRANORDER &&
869+
PyArray_IS_F_CONTIGUOUS(self))) &&
870+
(subok || PyArray_CheckExact(self)) &&
871+
PyArray_EquivTypes(dtype, PyArray_DESCR(self))) {
872872
Py_DECREF(dtype);
873873
Py_INCREF(self);
874874
return (PyObject *)self;

0 commit comments

Comments
 (0)