Skip to content

Commit 8dc4ff8

Browse files
ngoldbaumcharris
authored andcommitted
BUG: remove unnecessary call to PyArray_UpdateFlags
1 parent 1805a3a commit 8dc4ff8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

numpy/_core/src/multiarray/iterators.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ PyArray_RawIterBaseInit(PyArrayIterObject *it, PyArrayObject *ao)
136136
nd = PyArray_NDIM(ao);
137137
/* The legacy iterator only supports 32 dimensions */
138138
assert(nd <= NPY_MAXDIMS_LEGACY_ITERS);
139-
PyArray_UpdateFlags(ao, NPY_ARRAY_C_CONTIGUOUS);
140139
if (PyArray_ISCONTIGUOUS(ao)) {
141140
it->contiguous = 1;
142141
}

0 commit comments

Comments
 (0)