From c51db0ea40ddabaf5f771ea633b37fcf4c90a495 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Thu, 13 Aug 2020 09:48:41 +0100 Subject: bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850) --- 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 5dbd9f221f..2c5326686f 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -3894,7 +3894,7 @@ compiler_dict(struct compiler *c, expr_ty e) } else { if (elements == 0xFFFF) { - if (!compiler_subdict(c, e, i - elements, i)) { + if (!compiler_subdict(c, e, i - elements, i + 1)) { return 0; } if (have_dict) { -- cgit v1.2.1