summaryrefslogtreecommitdiffstats
path: root/Include/cpython/tupleobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/tupleobject.h')
-rw-r--r--Include/cpython/tupleobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/cpython/tupleobject.h b/Include/cpython/tupleobject.h
index fd15ecd..8089e24 100644
--- a/Include/cpython/tupleobject.h
+++ b/Include/cpython/tupleobject.h
@@ -14,7 +14,8 @@ PyAPI_FUNC(int) _PyTuple_Resize(PyObject **, Py_ssize_t);
PyAPI_FUNC(void) _PyTuple_MaybeUntrack(PyObject *);
/* Cast argument to PyTupleObject* type. */
-#define _PyTuple_CAST(op) (assert(PyTuple_Check(op)), (PyTupleObject *)(op))
+#define _PyTuple_CAST(op) \
+ (assert(PyTuple_Check(op)), _Py_reinterpret_cast(PyTupleObject*, (op)))
// Macros and static inline functions, trading safety for speed