summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2024-06-24 16:11:47 (GMT)
committerGitHub <noreply@github.com>2024-06-24 16:11:47 (GMT)
commite7315543377322e4c6e0d8d2c4a4bb4626e43f4c (patch)
tree956e3eb3c667a53aa60954e36916d165f2333bab /Python/getargs.c
parent2e157851e36d83b0cb079b161d633b16ab899d16 (diff)
downloadcpython-e7315543377322e4c6e0d8d2c4a4bb4626e43f4c.zip
cpython-e7315543377322e4c6e0d8d2c4a4bb4626e43f4c.tar.gz
cpython-e7315543377322e4c6e0d8d2c4a4bb4626e43f4c.tar.bz2
Fixes loop variables to be the same types as their limit (GH-120958)
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 75c1797..3e38280 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -2070,7 +2070,8 @@ vgetargskeywordsfast_impl(PyObject *const *args, Py_ssize_t nargs,
const char *format;
const char *msg;
PyObject *keyword;
- int i, pos, len;
+ Py_ssize_t i;
+ int pos, len;
Py_ssize_t nkwargs;
freelistentry_t static_entries[STATIC_FREELIST_ENTRIES];
freelist_t freelist;