Unverified Kaydet (Commit) c8846163 authored tarafından Victor Stinner's avatar Victor Stinner Kaydeden (comit) GitHub

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.
üst e78dace8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment