Skip to content

Commit 46a9792

Browse files
authored
bpo-36049: Fix compiler warning in Python/ast.c (pythonGH-11949)
1 parent 3bacf61 commit 46a9792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3872,7 +3872,7 @@ ast_for_suite(struct compiling *c, const node *n)
38723872
static void
38733873
get_last_end_pos(asdl_seq *s, int *end_lineno, int *end_col_offset)
38743874
{
3875-
int tot = asdl_seq_LEN(s);
3875+
Py_ssize_t tot = asdl_seq_LEN(s);
38763876
// There must be no empty suites.
38773877
assert(tot > 0);
38783878
stmt_ty last = asdl_seq_GET(s, tot - 1);

0 commit comments

Comments
 (0)