Skip to content

Commit ba6fb98

Browse files
committed
Remove leading underscore from PyObject_Vectorcall
1 parent c88ed41 commit ba6fb98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mypyc/lib-rt/pythonsupport.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ update_bases(PyObject *bases)
6969
}
7070
continue;
7171
}
72-
new_base = _PyObject_Vectorcall(meth, stack, 1, NULL);
72+
new_base = PyObject_Vectorcall(meth, stack, 1, NULL);
7373
Py_DECREF(meth);
7474
if (!new_base) {
7575
goto error;
@@ -118,7 +118,7 @@ init_subclass(PyTypeObject *type, PyObject *kwds)
118118
PyObject *super, *func, *result;
119119
PyObject *args[2] = {(PyObject *)type, (PyObject *)type};
120120

121-
super = _PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL);
121+
super = PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL);
122122
if (super == NULL) {
123123
return -1;
124124
}

mypyc/primitives/generic_ops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
object_rprimitive,
282282
], # Keyword arg names tuple (or NULL)
283283
return_type=object_rprimitive,
284-
c_function_name="_PyObject_Vectorcall",
284+
c_function_name="PyObject_Vectorcall",
285285
error_kind=ERR_MAGIC,
286286
)
287287

0 commit comments

Comments
 (0)