From ee40e4b8563e6e1bc2bfb267da5ffc9a2293318d Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Thu, 23 Apr 2020 03:43:08 +0100 Subject: bpo-40334: Don't downcast from Py_ssize_t to int (GH-19671) --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 3c21fbabf6..4a587c00fd 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2177,7 +2177,7 @@ static int compiler_check_debug_args_seq(struct compiler *c, asdl_seq *args) { if (args != NULL) { - for (int i = 0, n = asdl_seq_LEN(args); i < n; i++) { + for (Py_ssize_t i = 0, n = asdl_seq_LEN(args); i < n; i++) { if (!compiler_check_debug_one_arg(c, asdl_seq_GET(args, i))) return 0; } -- cgit v1.2.1