Skip to content

Commit 011c747

Browse files
Update Modules/_ctypes/_ctypes.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 8f52814 commit 011c747

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5558,9 +5558,7 @@ static int
55585558
copy_pointer_to_list_lock_held(PyObject *myself, PyObject *np, Py_ssize_t len,
55595559
Py_ssize_t start, Py_ssize_t step)
55605560
{
5561-
Py_ssize_t i;
5562-
size_t cur;
5563-
for (cur = start, i = 0; i < len; cur += step, i++) {
5561+
for (size_t cur = start, Py_ssize_t i = 0; i < len; cur += step, i++) {
55645562
PyObject *v = Pointer_item_lock_held(myself, cur);
55655563
if (!v) {
55665564
return -1;

0 commit comments

Comments
 (0)