summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-01-20 12:53:52 (GMT)
committerGitHub <noreply@github.com>2021-01-20 12:53:52 (GMT)
commitae7d3cd980fae6b9a9778c0ccd162b93035ad33e (patch)
treedcb5972acfa8e0e63dd4eac4e27f12c047937041 /Parser
parente982fe496bf756afd2ead8e56eb24b28a93c627a (diff)
downloadcpython-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.c2
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 ')':