Skip to content

Commit

Permalink
Remove leading underscore from PyObject_Vectorcall
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Dec 25, 2024
1 parent b6e7b48 commit 38464a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mypyc/lib-rt/pythonsupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ update_bases(PyObject *bases)
}
continue;
}
new_base = _PyObject_Vectorcall(meth, stack, 1, NULL);
new_base = PyObject_Vectorcall(meth, stack, 1, NULL);
Py_DECREF(meth);
if (!new_base) {
goto error;
Expand Down Expand Up @@ -118,7 +118,7 @@ init_subclass(PyTypeObject *type, PyObject *kwds)
PyObject *super, *func, *result;
PyObject *args[2] = {(PyObject *)type, (PyObject *)type};

super = _PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL);
super = PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL);
if (super == NULL) {
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion mypyc/primitives/generic_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
object_rprimitive,
], # Keyword arg names tuple (or NULL)
return_type=object_rprimitive,
c_function_name="_PyObject_Vectorcall",
c_function_name="PyObject_Vectorcall",
error_kind=ERR_MAGIC,
)

Expand Down

0 comments on commit 38464a0

Please sign in to comment.