Use Py_ssize_t for the column number in the PEG support code (GH-20341)

(cherry picked from commit b23d7adfdf)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
Miss Islington (bot) 2020-05-23 22:20:44 -07:00 committed by GitHub
parent 9181e2e2f3
commit 11fb605cb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -408,7 +408,7 @@ _PyPegen_raise_error_known_location(Parser *p, PyObject *errtype,
}
}
int col_number = byte_offset_to_character_offset(error_line, col_offset);
Py_ssize_t col_number = byte_offset_to_character_offset(error_line, col_offset);
tmp = Py_BuildValue("(OiiN)", p->tok->filename, lineno, col_number, error_line);
if (!tmp) {