[Python-checkins] bpo-36049: Fix compiler warning in Python/ast.c (GH-11949)

Pablo Galindo webhook-mailer at python.org
Tue Feb 19 17:51:58 EST 2019


https://github.com/python/cpython/commit/46a97920feaf4094436b2cdb32d2bd2fab3b59a5
commit: 46a97920feaf4094436b2cdb32d2bd2fab3b59a5
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019-02-19T22:51:53Z
summary:

bpo-36049: Fix compiler warning in Python/ast.c (GH-11949)

files:
M Python/ast.c

diff --git a/Python/ast.c b/Python/ast.c
index 5cef3fdadc9a..e721ac1c0a4a 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);



More information about the Python-checkins mailing list