Skip to content

Commit

Permalink
bpo-40958: Avoid 'possible loss of data' warning on Windows (GH-20970)
Browse files Browse the repository at this point in the history
  • Loading branch information
lysnikolaou committed Jun 20, 2020
1 parent 344c2a7 commit 861efc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Parser/pegen.c
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion Parser/pegen.h
Expand Up @@ -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;

Expand Down

0 comments on commit 861efc6

Please sign in to comment.