Skip to content

Commit 75e714c

Browse files
Update lineno type to Py_ssize_t
Co-authored-by: Pablo Galindo <[email protected]>
1 parent bdfc2a4 commit 75e714c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/pegen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ _PyPegen_raise_error(Parser *p, PyObject *errtype, const char *errmsg, ...)
381381
}
382382

383383
static PyObject *
384-
get_error_line(Parser *p, int lineno)
384+
get_error_line(Parser *p, Py_ssize_t lineno)
385385
{
386386
char *cur_line = p->tok->fp == NULL ? p->tok->str : p->tok->stdin_content;
387387
for (int i = 0; i < lineno - 1; i++) {

0 commit comments

Comments
 (0)