Skip to content

Commit

Permalink
Fix Windows compiler warning in tokenize.c (GH-8359)
Browse files Browse the repository at this point in the history
Fix the following warning on Windows:

parser\tokenizer.c(1297): warning C4244: 'function': conversion from
'__int64' to 'int', possible loss of data.
  • Loading branch information
vstinner committed Jul 21, 2018
1 parent e78dace commit c884616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parser/tokenizer.c
Expand Up @@ -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;
Expand Down

0 comments on commit c884616

Please sign in to comment.