diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-07-21 01:36:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-21 01:36:06 (GMT) |
commit | c884616390f990a58fe337376904530a48a0e833 (patch) | |
tree | 69033977d168192235c23f6236d1cde9089d2f7b /Parser/tokenizer.c | |
parent | e78dace8dcb23c371df19c9add65895adf436995 (diff) | |
download | cpython-c884616390f990a58fe337376904530a48a0e833.zip cpython-c884616390f990a58fe337376904530a48a0e833.tar.gz cpython-c884616390f990a58fe337376904530a48a0e833.tar.bz2 |
Fix Windows compiler warning in tokenize.c (GH-8359)
Fix the following warning on Windows:
parser\tokenizer.c(1297): warning C4244: 'function': conversion from
'__int64' to 'int', possible loss of data.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index f8b83c9..6566fde 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -1294,7 +1294,7 @@ syntaxerror(struct tok_state *tok, const char *format, ...) va_end(vargs); PyErr_SyntaxLocationObject(tok->filename, tok->lineno, - tok->cur - tok->line_start); + (int)(tok->cur - tok->line_start)); tok->done = E_ERROR; #else tok->done = E_TOKEN; |