summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-04-23 02:43:08 (GMT)
committerGitHub <noreply@github.com>2020-04-23 02:43:08 (GMT)
commitee40e4b8563e6e1bc2bfb267da5ffc9a2293318d (patch)
treefd79a2ff0ae7bd57b50b26deef72e41d8835401a /Python
parent0b7829e089f9f93e1387f240ae03d42ac7cd77c7 (diff)
downloadcpython-ee40e4b8563e6e1bc2bfb267da5ffc9a2293318d.zip
cpython-ee40e4b8563e6e1bc2bfb267da5ffc9a2293318d.tar.gz
cpython-ee40e4b8563e6e1bc2bfb267da5ffc9a2293318d.tar.bz2
bpo-40334: Don't downcast from Py_ssize_t to int (GH-19671)
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 3c21fba..4a587c0 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -2177,7 +2177,7 @@ static int
compiler_check_debug_args_seq(struct compiler *c, asdl_seq *args)
{
if (args != NULL) {
- for (int i = 0, n = asdl_seq_LEN(args); i < n; i++) {
+ for (Py_ssize_t i = 0, n = asdl_seq_LEN(args); i < n; i++) {
if (!compiler_check_debug_one_arg(c, asdl_seq_GET(args, i)))
return 0;
}