diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-04 23:38:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 23:38:50 (GMT) |
commit | d64d78be20ced6ac9de58e91e69eaba184e36e9b (patch) | |
tree | 8dbc053cbdb99129d22bdfd7e324b79b49d765b2 /Python | |
parent | 242eac1f0407ba27fd61683eaf34558d5e4ff360 (diff) | |
download | cpython-d64d78be20ced6ac9de58e91e69eaba184e36e9b.zip cpython-d64d78be20ced6ac9de58e91e69eaba184e36e9b.tar.gz cpython-d64d78be20ced6ac9de58e91e69eaba184e36e9b.tar.bz2 |
bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850) (GH-22107)
(cherry picked from commit c51db0ea40ddabaf5f771ea633b37fcf4c90a495)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
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 7ec92e0..51af28b 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -3890,7 +3890,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) { |