Skip to content

Commit 47c080b

Browse files
Aaron WieczorekAaron Wieczorek
authored andcommitted
Pass PY_VECTORCALL_ARGUMENTS_OFFSET in _Py_CallBuiltinClass_StackRefSteal
1 parent 0417dab commit 47c080b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ _Py_CallBuiltinClass_StackRefSteal(
12731273
goto cleanup;
12741274
}
12751275
PyTypeObject *tp = (PyTypeObject *)PyStackRef_AsPyObjectBorrow(callable);
1276-
res = tp->tp_vectorcall((PyObject *)tp, args_o, total_args, NULL);
1276+
res = tp->tp_vectorcall((PyObject *)tp, args_o, total_args | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
12771277
STACKREFS_TO_PYOBJECTS_CLEANUP(args_o);
12781278
assert((res != NULL) ^ (PyErr_Occurred() != NULL));
12791279
cleanup:

0 commit comments

Comments
 (0)