mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-91320: Use _PyCFunction_CAST() (#92251)
Replace "(PyCFunction)(void(*)(void))func" cast with _PyCFunction_CAST(func). Change generated by the command: sed -i -e \ 's!(PyCFunction)(void(\*)(void)) *\([A-Za-z0-9_]\+\)!_PyCFunction_CAST(\1)!g' \ $(find -name "*.c")
This commit is contained in:
parent
551d02b3e6
commit
804f2529d8
31 changed files with 146 additions and 146 deletions
|
|
@ -893,7 +893,7 @@ PyDoc_STRVAR(_operator_call__doc__,
|
|||
"Same as obj(*args, **kwargs).");
|
||||
|
||||
#define _OPERATOR_CALL_METHODDEF \
|
||||
{"call", (PyCFunction)(void(*)(void))_operator_call, METH_FASTCALL | METH_KEYWORDS, _operator_call__doc__},
|
||||
{"call", _PyCFunction_CAST(_operator_call), METH_FASTCALL | METH_KEYWORDS, _operator_call__doc__},
|
||||
|
||||
static PyObject *
|
||||
_operator_call(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue