From b6855150397a86da84c30d1144075d4609b339be Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 10 Sep 2015 21:02:39 -0700 Subject: compute stack effect of BUILD_MAP correctly (closes #25060) --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') 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: -- cgit v1.2.1