diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-04-23 02:43:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 02:43:08 (GMT) |
commit | ee40e4b8563e6e1bc2bfb267da5ffc9a2293318d (patch) | |
tree | fd79a2ff0ae7bd57b50b26deef72e41d8835401a /Python | |
parent | 0b7829e089f9f93e1387f240ae03d42ac7cd77c7 (diff) | |
download | cpython-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.c | 2 |
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; } |