summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-09-11 04:11:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-09-11 04:11:26 (GMT)
commit7920b7063d28c8032f30eb7dd87cd88113e9741c (patch)
treeb4eb3b80d41fe037beb0a17a1dfe8af53e0f6557 /Python/compile.c
parent4b55a9300a99e078056b1ce879d63b872212460f (diff)
parentb6855150397a86da84c30d1144075d4609b339be (diff)
downloadcpython-7920b7063d28c8032f30eb7dd87cd88113e9741c.zip
cpython-7920b7063d28c8032f30eb7dd87cd88113e9741c.tar.gz
cpython-7920b7063d28c8032f30eb7dd87cd88113e9741c.tar.bz2
merge 3.5 (#25060)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index b246c3b..a6884ec 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: