summaryrefslogtreecommitdiffstats
path: root/Include/cpython/methodobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-05-03 14:37:06 (GMT)
committerGitHub <noreply@github.com>2022-05-03 14:37:06 (GMT)
commitfbd5539a54a1cf79dd9623a24d42d363bf084897 (patch)
tree2fa49feb64acb58f36fe9456143e5d0270da1350 /Include/cpython/methodobject.h
parentf6f36cc26978e3036a6c5c068fca5b8135f27ef3 (diff)
downloadcpython-fbd5539a54a1cf79dd9623a24d42d363bf084897.zip
cpython-fbd5539a54a1cf79dd9623a24d42d363bf084897.tar.gz
cpython-fbd5539a54a1cf79dd9623a24d42d363bf084897.tar.bz2
gh-92135: Rename _Py_reinterpret_cast() to _Py_CAST() (#92230)
Rename also _Py_static_cast() to _Py_STATIC_CAST().
Diffstat (limited to 'Include/cpython/methodobject.h')
-rw-r--r--Include/cpython/methodobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/methodobject.h b/Include/cpython/methodobject.h
index 68cecfe..bbb67ec 100644
--- a/Include/cpython/methodobject.h
+++ b/Include/cpython/methodobject.h
@@ -9,10 +9,10 @@ PyAPI_DATA(PyTypeObject) PyCMethod_Type;
#define _PyCFunctionObject_CAST(func) \
(assert(PyCFunction_Check(func)), \
- _Py_reinterpret_cast(PyCFunctionObject*, (func)))
+ _Py_CAST(PyCFunctionObject*, (func)))
#define _PyCMethodObject_CAST(func) \
(assert(PyCMethod_Check(func)), \
- _Py_reinterpret_cast(PyCMethodObject*, (func)))
+ _Py_CAST(PyCMethodObject*, (func)))
/* Macros for direct access to these values. Type checks are *not*
done, so use with care. */