]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92434: Silence a compiler warning in _xxsubinterpretersmodule.c for 32bit version...
authorneonene <53406459+neonene@users.noreply.github.com>
Wed, 25 May 2022 01:22:39 +0000 (10:22 +0900)
committerGitHub <noreply@github.com>
Wed, 25 May 2022 01:22:39 +0000 (10:22 +0900)
Modules/_xxsubinterpretersmodule.c

index 9b1f186c5b6c7cf986e26bdff9d74a75f932a6ee..ee04e308fe554fb26f58d04938cb8e40dc5271e8 100644 (file)
@@ -2338,7 +2338,7 @@ channel_list_all(PyObject *self, PyObject *Py_UNUSED(ignored))
             ids = NULL;
             break;
         }
-        PyList_SET_ITEM(ids, i, id);
+        PyList_SET_ITEM(ids, (Py_ssize_t)i, id);
     }
 
 finally: