diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-01-20 12:53:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 12:53:52 (GMT) |
commit | ae7d3cd980fae6b9a9778c0ccd162b93035ad33e (patch) | |
tree | dcb5972acfa8e0e63dd4eac4e27f12c047937041 /Parser | |
parent | e982fe496bf756afd2ead8e56eb24b28a93c627a (diff) | |
download | cpython-ae7d3cd980fae6b9a9778c0ccd162b93035ad33e.zip cpython-ae7d3cd980fae6b9a9778c0ccd162b93035ad33e.tar.gz cpython-ae7d3cd980fae6b9a9778c0ccd162b93035ad33e.tar.bz2 |
bpo-42864: Fix compiler warning in the tokenizer with the new paren stack for column numbers (GH-24266)
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/tokenizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index f9c8bf6..d3e846c 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -1820,7 +1820,7 @@ tok_get(struct tok_state *tok, const char **p_start, const char **p_end) } tok->parenstack[tok->level] = c; tok->parenlinenostack[tok->level] = tok->lineno; - tok->parencolstack[tok->level] = tok->start - tok->line_start; + tok->parencolstack[tok->level] = (int)(tok->start - tok->line_start); tok->level++; break; case ')': |