mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00: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
|
@ -1432,7 +1432,7 @@ PyDoc_STRVAR(_functools_doc,
|
|||
|
||||
static PyMethodDef _functools_methods[] = {
|
||||
{"reduce", functools_reduce, METH_VARARGS, functools_reduce_doc},
|
||||
{"cmp_to_key", (PyCFunction)(void(*)(void))functools_cmp_to_key,
|
||||
{"cmp_to_key", _PyCFunction_CAST(functools_cmp_to_key),
|
||||
METH_VARARGS | METH_KEYWORDS, functools_cmp_to_key_doc},
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue