aboutsummaryrefslogtreecommitdiff
path: root/Python/ast_opt.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2018-01-18 11:15:25 +0100
committerGitHub <noreply@github.com>2018-01-18 11:15:25 +0100
commit05d68a8bd84cb141be9f9335f5b3540f15a989c4 (patch)
treea4e48a3b3c5b46422f83ffb9b4314eb8ea344325 /Python/ast_opt.c
parentab74504346a6e2569b3255b7b621c589716888c4 (diff)
downloadcpython3-05d68a8bd84cb141be9f9335f5b3540f15a989c4.tar.gz
bpo-9566: Fix size_t=>int downcast warnings (#5230)
* Use wider types (int => Py_ssize_t) to avoid integer overflows. * Fix gc.get_freeze_count(): use Py_ssize_t type rather than int, since gc_list_size() returns a Py_ssize_t.
Diffstat (limited to 'Python/ast_opt.c')
-rw-r--r--Python/ast_opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast_opt.c b/Python/ast_opt.c
index f98a28aa05..65cf3c1264 100644
--- a/Python/ast_opt.c
+++ b/Python/ast_opt.c
@@ -397,7 +397,7 @@ fold_compare(expr_ty node, PyArena *arena, int optimize)
{
asdl_int_seq *ops;
asdl_seq *args;
- int i;
+ Py_ssize_t i;
ops = node->v.Compare.ops;
args = node->v.Compare.comparators;