diff options
author | Victor Stinner <vstinner@python.org> | 2022-05-03 16:37:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 16:37:06 +0200 |
commit | fbd5539a54a1cf79dd9623a24d42d363bf084897 (patch) | |
tree | 2fa49feb64acb58f36fe9456143e5d0270da1350 /Include/objimpl.h | |
parent | f6f36cc26978e3036a6c5c068fca5b8135f27ef3 (diff) | |
download | cpython3-fbd5539a54a1cf79dd9623a24d42d363bf084897.tar.gz |
gh-92135: Rename _Py_reinterpret_cast() to _Py_CAST() (#92230)
Rename also _Py_static_cast() to _Py_STATIC_CAST().
Diffstat (limited to 'Include/objimpl.h')
-rw-r--r-- | Include/objimpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h index c8e57c9755..4fa670e71a 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -182,9 +182,9 @@ PyAPI_FUNC(void) PyObject_GC_UnTrack(void *); PyAPI_FUNC(void) PyObject_GC_Del(void *); #define PyObject_GC_New(type, typeobj) \ - _Py_reinterpret_cast(type*, _PyObject_GC_New(typeobj)) + _Py_CAST(type*, _PyObject_GC_New(typeobj)) #define PyObject_GC_NewVar(type, typeobj, n) \ - _Py_reinterpret_cast(type*, _PyObject_GC_NewVar((typeobj), (n))) + _Py_CAST(type*, _PyObject_GC_NewVar((typeobj), (n))) PyAPI_FUNC(int) PyObject_GC_IsTracked(PyObject *); PyAPI_FUNC(int) PyObject_GC_IsFinalized(PyObject *); |