Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5394bf9 commit 264a011Copy full SHA for 264a011
Python/Python-tokenize.c
@@ -85,7 +85,8 @@ _tokenizer_error(struct tok_state *tok)
85
break;
86
case E_EOF:
87
PyErr_SetString(PyExc_SyntaxError, "unexpected EOF in multi-line statement");
88
- PyErr_SyntaxLocationObject(tok->filename, tok->lineno, tok->inp - tok->buf < 0 ? 0 : tok->inp - tok->buf);
+ PyErr_SyntaxLocationObject(tok->filename, tok->lineno,
89
+ tok->inp - tok->buf < 0 ? 0 : (int)(tok->inp - tok->buf));
90
return -1;
91
case E_DEDENT:
92
msg = "unindent does not match any outer indentation level";
0 commit comments