mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
bpo-40958: Avoid 'possible loss of data' warning on Windows (GH-20970)
(cherry picked from commit 861efc6e8f
)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
This commit is contained in:
parent
75238869b5
commit
c9f83c173b
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue