There was an error while loading. Please reload this page.
1 parent 8852ad4 commit edb3f4bCopy full SHA for edb3f4b
1 file changed
Parser/pegen/pegen.c
@@ -597,13 +597,13 @@ _PyPegen_fill_token(Parser *p)
597
598
int lineno = type == STRING ? p->tok->first_lineno : p->tok->lineno;
599
const char *line_start = type == STRING ? p->tok->multi_line_start : p->tok->line_start;
600
- size_t end_lineno = p->tok->lineno;
601
- size_t col_offset = -1, end_col_offset = -1;
+ int end_lineno = p->tok->lineno;
+ int col_offset = -1, end_col_offset = -1;
602
if (start != NULL && start >= line_start) {
603
- col_offset = start - line_start;
+ col_offset = (int)(start - line_start);
604
}
605
if (end != NULL && end >= p->tok->line_start) {
606
- end_col_offset = end - p->tok->line_start;
+ end_col_offset = (int)(end - p->tok->line_start);
607
608
609
t->lineno = p->starting_lineno + lineno;
0 commit comments