mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Fixes loop variables to be the same types as their limit (GH-120958)
This commit is contained in:
parent
2e157851e3
commit
e731554337
14 changed files with 26 additions and 26 deletions
|
|
@ -864,7 +864,7 @@ _PyPegen_make_module(Parser *p, asdl_stmt_seq *a) {
|
|||
if (type_ignores == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
for (int i = 0; i < num; i++) {
|
||||
for (Py_ssize_t i = 0; i < num; i++) {
|
||||
PyObject *tag = _PyPegen_new_type_comment(p, p->type_ignore_comments.items[i].comment);
|
||||
if (tag == NULL) {
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue