summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-07-05 12:48:24 (GMT)
committerPetr Viktorin <encukou@gmail.com>2019-07-05 12:48:24 (GMT)
commit0d722f3cd602e5f5492f9c65c8af57ea9d3743b6 (patch)
treee64e73f12cbad55824a13f3e7871051b9b34d98c /Python
parent6e43d07324ca799118e805751a10a7eff71d5a04 (diff)
downloadcpython-0d722f3cd602e5f5492f9c65c8af57ea9d3743b6.zip
cpython-0d722f3cd602e5f5492f9c65c8af57ea9d3743b6.tar.gz
cpython-0d722f3cd602e5f5492f9c65c8af57ea9d3743b6.tar.bz2
bpo-36974: separate vectorcall functions for each calling convention (GH-13781)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index b0fd6ee..fdd2995 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4936,7 +4936,7 @@ trace_call_function(PyThreadState *tstate,
{
PyObject *x;
if (PyCFunction_Check(func)) {
- C_TRACE(x, _PyCFunction_Vectorcall(func, args, nargs, kwnames));
+ C_TRACE(x, _PyObject_Vectorcall(func, args, nargs, kwnames));
return x;
}
else if (Py_TYPE(func) == &PyMethodDescr_Type && nargs > 0) {
@@ -4952,9 +4952,9 @@ trace_call_function(PyThreadState *tstate,
if (func == NULL) {
return NULL;
}
- C_TRACE(x, _PyCFunction_Vectorcall(func,
- args+1, nargs-1,
- kwnames));
+ C_TRACE(x, _PyObject_Vectorcall(func,
+ args+1, nargs-1,
+ kwnames));
Py_DECREF(func);
return x;
}