mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-132097: use a macro for semantically casting function pointers (#132406)
This commit is contained in:
parent
f3d877a27a
commit
379352620c
9 changed files with 47 additions and 31 deletions
|
@ -567,7 +567,7 @@ cfunction_call(PyObject *func, PyObject *args, PyObject *kwargs)
|
|||
PyObject *result;
|
||||
if (flags & METH_KEYWORDS) {
|
||||
result = _PyCFunctionWithKeywords_TrampolineCall(
|
||||
(*(PyCFunctionWithKeywords)(void(*)(void))meth),
|
||||
*_PyCFunctionWithKeywords_CAST(meth),
|
||||
self, args, kwargs);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue