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.
This commit is contained in:
Victor Stinner 2018-07-21 03:36:06 +02:00 committed by GitHub
parent e78dace8dc
commit c884616390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1294,7 +1294,7 @@ syntaxerror(struct tok_state *tok, const char *format, ...)
va_end(vargs); va_end(vargs);
PyErr_SyntaxLocationObject(tok->filename, PyErr_SyntaxLocationObject(tok->filename,
tok->lineno, tok->lineno,
tok->cur - tok->line_start); (int)(tok->cur - tok->line_start));
tok->done = E_ERROR; tok->done = E_ERROR;
#else #else
tok->done = E_TOKEN; tok->done = E_TOKEN;