Skip to content

Commit ae7d3cd

Browse files
authored
bpo-42864: Fix compiler warning in the tokenizer with the new paren stack for column numbers (GH-24266)
1 parent e982fe4 commit ae7d3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ tok_get(struct tok_state *tok, const char **p_start, const char **p_end)
18201820
}
18211821
tok->parenstack[tok->level] = c;
18221822
tok->parenlinenostack[tok->level] = tok->lineno;
1823-
tok->parencolstack[tok->level] = tok->start - tok->line_start;
1823+
tok->parencolstack[tok->level] = (int)(tok->start - tok->line_start);
18241824
tok->level++;
18251825
break;
18261826
case ')':

0 commit comments

Comments
 (0)