bpo-40334: Don't downcast from Py_ssize_t to int (GH-19671)

This commit is contained in:
Pablo Galindo 2020-04-23 03:43:08 +01:00 committed by GitHub
parent 0b7829e089
commit ee40e4b856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 22 deletions

View file

@ -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;
}