diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-05-24 05:20:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-24 05:20:44 (GMT) |
commit | 11fb605cb8b632387c5599bbe3ded1d966d50138 (patch) | |
tree | d80d2c31abad2e8c5d5c17aa1f2ac892870863a2 /Parser | |
parent | 9181e2e2f3ade85f65bf2521a5deb898434dfd64 (diff) | |
download | cpython-11fb605cb8b632387c5599bbe3ded1d966d50138.zip cpython-11fb605cb8b632387c5599bbe3ded1d966d50138.tar.gz cpython-11fb605cb8b632387c5599bbe3ded1d966d50138.tar.bz2 |
Use Py_ssize_t for the column number in the PEG support code (GH-20341)
(cherry picked from commit b23d7adfdfa66dd8e6f98e968b1ba885692b67d6)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Parser')
-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) { |