bpo-41531: Fix compilation of dict literals with more than 0xFFFF elements (GH-21850)

This commit is contained in:
Pablo Galindo 2020-08-13 09:48:41 +01:00 committed by GitHub
parent 8ecc0c4d39
commit c51db0ea40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View file

@ -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) {