Skip to content

Commit e7f00dc

Browse files
committed
nit picked
1 parent 3f9bd66 commit e7f00dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Modules/arraymodule.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,10 +3092,12 @@ array_arrayiterator___setstate__(arrayiterobject *self, PyObject *state)
30923092
return NULL;
30933093
arrayobject *ao = self->ao;
30943094
if (ao != NULL) {
3095-
if (index < 0)
3095+
if (index < 0) {
30963096
index = 0;
3097-
else if (index > Py_SIZE(ao))
3097+
}
3098+
else if (index > Py_SIZE(ao)) {
30983099
index = Py_SIZE(ao); /* iterator exhausted */
3100+
}
30993101
self->index = index;
31003102
}
31013103
Py_RETURN_NONE;

0 commit comments

Comments
 (0)