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

This commit is contained in:
Pablo Galindo 2020-05-24 06:01:34 +01:00 committed by GitHub
parent 13206b52d1
commit b23d7adfdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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) {