diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-08-13 08:48:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-13 08:48:41 (GMT) |
commit | c51db0ea40ddabaf5f771ea633b37fcf4c90a495 (patch) | |
tree | 3a46b03e06f18892609dba444d1232603bcc3cb9 /Python | |
parent | 8ecc0c4d390d03de5cd2344aa44b69ed02ffe470 (diff) | |
download | cpython-c51db0ea40ddabaf5f771ea633b37fcf4c90a495.zip cpython-c51db0ea40ddabaf5f771ea633b37fcf4c90a495.tar.gz cpython-c51db0ea40ddabaf5f771ea633b37fcf4c90a495.tar.bz2 |
bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 5dbd9f2..2c53266 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) { |