8000 Fix stack effect of CALL to account for 3.11 PRECALL. · python/cpython@9ae9992 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ae9992

Browse files
committed
Fix stack effect of CALL to account for 3.11 PRECALL.
1 parent d431988 commit 9ae9992

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Objects/frameobject.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,7 @@ mark_stacks(PyCodeObject *code_obj, int len)
404404
break;
405405
case CALL:
406406
{
407-
int args = get_arg(code, i);
408-
for (int j = 0; j < args+2; j++) {
409-
next_stack = pop_value(next_stack);
410-
}
407+
next_stack = pop_value(pop_value(next_stack));
411408
next_stack = push_value(next_stack, Object);
412409
stacks[i+1] = next_stack;
413410
break;

0 commit comments

Comments
 (0)
0