summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-02-19 22:51:53 +0000
committerGitHub <noreply@github.com>2019-02-19 22:51:53 +0000
commit46a97920feaf4094436b2cdb32d2bd2fab3b59a5 (patch)
tree7476620d4d8c45b621713ccefcaa07a9e2cb4a8a /Python/ast.c
parent3bacf6126522a9b3bcb6be0c4f3ee6a895dfe772 (diff)
downloadcpython-git-46a97920feaf4094436b2cdb32d2bd2fab3b59a5.tar.gz
bpo-36049: Fix compiler warning in Python/ast.c (GH-11949)
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 5cef3fdadc..e721ac1c0a 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -3872,7 +3872,7 @@ ast_for_suite(struct compiling *c, const node *n)
static void
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.
assert(tot > 0);
stmt_ty last = asdl_seq_GET(s, tot - 1);