[Python-checkins] gh-92434: Silence a compiler warning in _xxsubinterpretersmodule.c for 32bit version (gh-93091)

corona10 webhook-mailer at python.org
Tue May 24 21:22:49 EDT 2022


https://github.com/python/cpython/commit/ac1dcb8ee7745561407130bb917de3277528d4f6
commit: ac1dcb8ee7745561407130bb917de3277528d4f6
branch: main
author: neonene <53406459+neonene at users.noreply.github.com>
committer: corona10 <donghee.na92 at gmail.com>
date: 2022-05-25T10:22:39+09:00
summary:

gh-92434: Silence a compiler warning in _xxsubinterpretersmodule.c for 32bit version (gh-93091)

files:
M Modules/_xxsubinterpretersmodule.c

diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c
index 9b1f186c5b6c7..ee04e308fe554 100644
--- a/Modules/_xxsubinterpretersmodule.c
+++ b/Modules/_xxsubinterpretersmodule.c
@@ -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:



More information about the Python-checkins mailing list