]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36049: Fix compiler warning in Python/ast.c (GH-11949)
authorPablo Galindo <Pablogsal@gmail.com>
Tue, 19 Feb 2019 22:51:53 +0000 (22:51 +0000)
committerGitHub <noreply@github.com>
Tue, 19 Feb 2019 22:51:53 +0000 (22:51 +0000)
Python/ast.c

index 5cef3fdadc9ae97e7a22906003ad5dc47cb150cb..e721ac1c0a4a15de9216e59c9118f7cc2d52a1ad 100644 (file)
@@ -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);