Skip to content

Commit 564fa12

Browse files
committed
Fix PyObject_CallFunctionObjArgs usage
1 parent 8d1a6e3 commit 564fa12

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

Python/bytecodes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ dummy_func(
20512051
// handle any case whose performance we care about
20522052
PyObject *super;
20532053
if (oparg & 2) {
2054-
super = PyObject_CallFunctionObjArgs(global_super, class, self);
2054+
super = PyObject_CallFunctionObjArgs(global_super, class, self, NULL);
20552055
}
20562056
else {
20572057
super = PyObject_CallNoArgs(global_super);
@@ -3321,11 +3321,11 @@ dummy_func(
33213321
(void)lasti; // Shut up compiler warning if asserts are off
33223322
PyObject *res_o;
33233323
if (PyStackRef_IsNull(exit_self)) {
3324-
res_o = PyObject_CallFunctionObjArgs(exit_func_o, exc, val_o, tb);
3324+
res_o = PyObject_CallFunctionObjArgs(exit_func_o, exc, val_o, tb, NULL);
33253325
}
33263326
else {
33273327
PyObject *exit_self_o = PyStackRef_AsPyObjectBorrow(exit_self);
3328-
res_o = PyObject_CallFunctionObjArgs(exit_func_o, exit_self_o, exc, val_o, tb);
3328+
res_o = PyObject_CallFunctionObjArgs(exit_func_o, exit_self_o, exc, val_o, tb, NULL);
33293329
}
33303330
ERROR_IF(res_o == NULL, error);
33313331
res = PyStackRef_FromPyObjectSteal(res_o);

Python/executor_cases.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)