@@ -574,8 +574,7 @@ iter_subscript(PyArrayIterObject *self, PyObject *ind)
574
574
NPY_cast_info cast_info = {.func = NULL };
575
575
576
576
/* Prepare the indices */
577
- npy_intp dims [1 ]= {self -> size };
578
- index_type = prepare_index_noarray (1 ,dims ,ind ,indices ,& index_num ,
577
+ index_type = prepare_index_noarray (1 ,& self -> size ,ind ,indices ,& index_num ,
579
578
& ndim ,& fancy_ndim ,1 ,1 );
580
579
581
580
if (index_type < 0 ) {
@@ -652,7 +651,7 @@ iter_subscript(PyArrayIterObject *self, PyObject *ind)
652
651
653
652
if (index_type & HAS_SLICE ) {
654
653
if (PySlice_GetIndicesEx (indices [0 ].object ,
655
- dims [ 0 ] ,
654
+ self -> size ,
656
655
& start ,& stop ,& step ,& n_steps )< 0 ) {
657
656
gotofinish ;
658
657
}
@@ -834,8 +833,7 @@ iter_ass_subscript(PyArrayIterObject *self, PyObject *ind, PyObject *val)
834
833
NPY_cast_info cast_info = {.func = NULL };
835
834
836
835
/* Prepare the indices */
837
- npy_intp dims [1 ]= {self -> size };
838
- index_type = prepare_index_noarray (1 ,dims ,ind ,indices ,& index_num ,
836
+ index_type = prepare_index_noarray (1 ,& self -> size ,ind ,indices ,& index_num ,
839
837
& ndim ,& fancy_ndim ,1 ,1 );
840
838
841
839
if (index_type < 0 ) {
@@ -915,7 +913,7 @@ iter_ass_subscript(PyArrayIterObject *self, PyObject *ind, PyObject *val)
915
913
916
914
if (index_type & HAS_SLICE ) {
917
915
if (PySlice_GetIndicesEx (indices [0 ].object ,
918
- dims [ 0 ] ,
916
+ self -> size ,
919
917
& start ,& stop ,& step ,& n_steps )< 0 ) {
920
918
gotofinish ;
921
919
}