mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
bpo-40334: Don't downcast from Py_ssize_t to int (GH-19671)
This commit is contained in:
parent
0b7829e089
commit
ee40e4b856
2 changed files with 22 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue