diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-05-24 05:01:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-24 05:01:34 (GMT) |
commit | b23d7adfdfa66dd8e6f98e968b1ba885692b67d6 (patch) | |
tree | 49ed745196c93dce7cdd502dbd1e63ee94009a72 | |
parent | 13206b52d16c2489f4c7dd2dce2a7f48a554b5ed (diff) | |
download | cpython-b23d7adfdfa66dd8e6f98e968b1ba885692b67d6.zip cpython-b23d7adfdfa66dd8e6f98e968b1ba885692b67d6.tar.gz cpython-b23d7adfdfa66dd8e6f98e968b1ba885692b67d6.tar.bz2 |
Use Py_ssize_t for the column number in the PEG support code (GH-20341)
-rw-r--r-- | Parser/pegen/pegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen/pegen.c b/Parser/pegen/pegen.c index f1e3f9e..9cade2a 100644 --- a/Parser/pegen/pegen.c +++ b/Parser/pegen/pegen.c @@ -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) { |