mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-36049: Fix compiler warning in Python/ast.c (GH-11949)
This commit is contained in:
parent
3bacf61265
commit
46a97920fe
1 changed files with 1 additions and 1 deletions
|
@ -3872,7 +3872,7 @@ ast_for_suite(struct compiling *c, const node *n)
|
||||||
static void
|
static void
|
||||||
get_last_end_pos(asdl_seq *s, int *end_lineno, int *end_col_offset)
|
get_last_end_pos(asdl_seq *s, int *end_lineno, int *end_col_offset)
|
||||||
{
|
{
|
||||||
int tot = asdl_seq_LEN(s);
|
Py_ssize_t tot = asdl_seq_LEN(s);
|
||||||
// There must be no empty suites.
|
// There must be no empty suites.
|
||||||
assert(tot > 0);
|
assert(tot > 0);
|
||||||
stmt_ty last = asdl_seq_GET(s, tot - 1);
|
stmt_ty last = asdl_seq_GET(s, tot - 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue