mirror of https://github.com/python/cpython
bpo-40958: Avoid 'possible loss of data' warning on Windows (GH-20970)
This commit is contained in:
parent
344c2a75c1
commit
861efc6e8f
|
@ -397,7 +397,7 @@ _PyPegen_raise_error_known_location(Parser *p, PyObject *errtype,
|
|||
}
|
||||
|
||||
if (p->start_rule == Py_file_input) {
|
||||
error_line = PyErr_ProgramTextObject(p->tok->filename, lineno);
|
||||
error_line = PyErr_ProgramTextObject(p->tok->filename, (int) lineno);
|
||||
}
|
||||
|
||||
if (!error_line) {
|
||||
|
|
|
@ -34,7 +34,7 @@ typedef struct _memo {
|
|||
typedef struct {
|
||||
int type;
|
||||
PyObject *bytes;
|
||||
Py_ssize_t lineno, col_offset, end_lineno, end_col_offset;
|
||||
int lineno, col_offset, end_lineno, end_col_offset;
|
||||
Memo *memo;
|
||||
} Token;
|
||||
|
||||
|
|
Loading…
Reference in New Issue