Skip to content

Commit c884616

Browse files
authored
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.
1 parent e78dace commit c884616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ syntaxerror(struct tok_state *tok, const char *format, ...)
12941294
va_end(vargs);
12951295
PyErr_SyntaxLocationObject(tok->filename,
12961296
tok->lineno,
1297-
tok->cur - tok->line_start);
1297+
(int)(tok->cur - tok->line_start));
12981298
tok->done = E_ERROR;
12991299
#else
13001300
tok->done = E_TOKEN;

0 commit comments

Comments
 (0)