diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-09-10 21:02:39 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-09-10 21:02:39 -0700 |
commit | c5806bf732577121ab46511ae48f41ba3f38287e (patch) | |
tree | e31632343462bea41eb88d97c0a7f014f8b17d7d /Python/compile.c | |
parent | 8e46310a7371c81f78904d7d0b162702e5deb903 (diff) | |
download | cpython-c5806bf732577121ab46511ae48f41ba3f38287e.tar.gz |
compute stack effect of BUILD_MAP correctly (closes #25060)
Diffstat (limited to 'Python/compile.c')
-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 cfeab0fdfe..97bb12ee67 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -985,7 +985,7 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg) case BUILD_MAP_UNPACK_WITH_CALL: return 1 - (oparg & 0xFF); case BUILD_MAP: - return 1; + return 1 - 2*oparg; case LOAD_ATTR: return 0; case COMPARE_OP: |