From: Pablo Galindo Date: Wed, 20 Jan 2021 12:53:52 +0000 (+0000) Subject: bpo-42864: Fix compiler warning in the tokenizer with the new paren stack for column... X-Git-Tag: v3.10.0a5~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae7d3cd980fae6b9a9778c0ccd162b93035ad33e;p=thirdparty%2FPython%2Fcpython.git bpo-42864: Fix compiler warning in the tokenizer with the new paren stack for column numbers (GH-24266) --- diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index f9c8bf652cdf..d3e846c0a5a1 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 ')':