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

Skip to content

Commit c23165b

Browse files
committed
Prefer ++i over i++
1 parent 5722773 commit c23165b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/structseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ structseq_replace(PyStructSequence *self, PyObject *args, PyObject *kwargs)
401401
if (kwargs != NULL) {
402402
// We do not support types with unnamed fields, so we can iterate over
403403
// i >= n_visible_fields case without slicing with (i - n_unnamed_fields).
404-
for (i = 0; i < n_fields; i++) {
404+
for (i = 0; i < n_fields; ++i) {
405405
PyObject *key = PyUnicode_FromString(Py_TYPE(self)->tp_members[i].name);
406406
if (!key) {
407407
goto error;

0 commit comments

Comments
 (0)