Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4352957

Browse files
committed
MAINT: fix a compiler warning
1 parent 0d744c4 commit 4352957

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

numpy/core/src/multiarray/mapping.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,8 @@ array_assign_subscript(PyArrayObject *self, PyObject *ind, PyObject *op)
18071807
* check to allow wrong dimensional boolean arrays in all cases.
18081808
*/
18091809
if (PyArray_NDIM(tmp_arr) > 1) {
1810-
if (attempt_1d_fallback(self, indices[0].object, tmp_arr) < 0) {
1810+
if (attempt_1d_fallback(self, indices[0].object,
1811+
(PyObject*)tmp_arr) < 0) {
18111812
goto fail;
18121813
}
18131814
goto success;

0 commit comments

Comments
 (0)