Skip to content

Commit

Permalink
Use Py_ssize_t for the column number in the PEG support code (GH-20341)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal committed May 24, 2020
1 parent 13206b5 commit b23d7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/pegen/pegen.c
Expand Up @@ -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) {
Expand Down

0 comments on commit b23d7ad

Please sign in to comment.