mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850)
This commit is contained in:
parent
8ecc0c4d39
commit
c51db0ea40
3 changed files with 13 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue