diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2017-02-21 17:33:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-21 17:33:24 (GMT) |
commit | 3ab24bdd47fdd9d45719ad49f93d3878d4442d7e (patch) | |
tree | fac99d736cd7108e0ad302d51158e3f51b14b09c /Python | |
parent | e48fd93bbb36c6d80aa4eb6af09f58c69d8cf965 (diff) | |
download | cpython-3ab24bdd47fdd9d45719ad49f93d3878d4442d7e.zip cpython-3ab24bdd47fdd9d45719ad49f93d3878d4442d7e.tar.gz cpython-3ab24bdd47fdd9d45719ad49f93d3878d4442d7e.tar.bz2 |
bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX (GH-219)
(cherry picked from commit 3a9ac827c7c87dffc60c4200323948551bcb6662)
Diffstat (limited to 'Python')
-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 0e16075..6255ec7 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1043,7 +1043,7 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg) case CALL_FUNCTION_KW: return -oparg-1; case CALL_FUNCTION_EX: - return - ((oparg & 0x01) != 0) - ((oparg & 0x02) != 0); + return -1 - ((oparg & 0x01) != 0); case MAKE_FUNCTION: return -1 - ((oparg & 0x01) != 0) - ((oparg & 0x02) != 0) - ((oparg & 0x04) != 0) - ((oparg & 0x08) != 0); |