8000 gh-105390: Add explicit type cast (GH-105466) · miss-islington/cpython@9826fac · GitHub
  • [go: up one dir, main page]

    Skip to content

    Commit 9826fac

    Browse files
    Eclips4miss-islington
    authored andcommitted
    pythongh-105390: Add explicit type cast (pythonGH-105466)
    (cherry picked from commit 264a011) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
    1 parent 1e12877 commit 9826fac

    File tree

    1 file changed

    +2
    -1
    lines changed

    1 file changed

    +2
    -1
    lines changed

    Python/Python-tokenize.c

    Lines changed: 2 additions & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -85,7 +85,8 @@ _tokenizer_error(struct tok_state *tok)
    8585
    break;
    8686
    case E_EOF:
    8787
    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);
    88+
    PyErr_SyntaxLocationObject(tok->filename, tok->lineno,
    89+
    tok->inp - tok->buf < 0 ? 0 : (int)(tok->inp - tok->buf));
    8990
    return -1;
    9091
    case E_DEDENT:
    9192
    msg = "unindent does not match any outer indentation level";

    0 commit comments

    Comments
     (0)
    0