[Python-checkins] bpo-42864: Fix compiler warning in the tokenizer with the new paren stack for column numbers (GH-24266)
pablogsal
webhook-mailer at python.org
Wed Jan 20 07:54:00 EST 2021
https://github.com/python/cpython/commit/ae7d3cd980fae6b9a9778c0ccd162b93035ad33e
commit: ae7d3cd980fae6b9a9778c0ccd162b93035ad33e
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-01-20T12:53:52Z
summary:
bpo-42864: Fix compiler warning in the tokenizer with the new paren stack for column numbers (GH-24266)
files:
M Parser/tokenizer.c
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index f9c8bf652cdfb..d3e846c0a5a12 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 ')':
More information about the Python-checkins
mailing list