File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
numpy/core/src/multiarray Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments