From fbd5539a54a1cf79dd9623a24d42d363bf084897 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 3 May 2022 16:37:06 +0200 Subject: gh-92135: Rename _Py_reinterpret_cast() to _Py_CAST() (#92230) Rename also _Py_static_cast() to _Py_STATIC_CAST(). --- Include/methodobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/methodobject.h') diff --git a/Include/methodobject.h b/Include/methodobject.h index f4be3858f2..c971d78a64 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -43,7 +43,7 @@ typedef PyObject *(*PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, // it triggers an undefined behavior when Python calls it with 2 parameters // (bpo-33012). #define _PyCFunction_CAST(func) \ - _Py_reinterpret_cast(PyCFunction, _Py_reinterpret_cast(void(*)(void), (func))) + _Py_CAST(PyCFunction, _Py_CAST(void(*)(void), (func))) PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *); PyAPI_FUNC(PyObject *) PyCFunction_GetSelf(PyObject *); -- cgit v1.2.1