mirror of https://github.com/python/cpython
Use Py_ssize_t for the column number in the PEG support code (GH-20341)
This commit is contained in:
parent
13206b52d1
commit
b23d7adfdf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue