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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/tupleobject.h b/Include/cpython/tupleobject.h
index 7cada88..fc37c4e 100644
--- a/Include/cpython/tupleobject.h
+++ b/Include/cpython/tupleobject.h
@@ -23,6 +23,6 @@ PyAPI_FUNC(void) _PyTuple_MaybeUntrack(PyObject *);
#define PyTuple_GET_ITEM(op, i) (_PyTuple_CAST(op)->ob_item[i])
/* Macro, *only* to be used to fill in brand new tuples */
-#define PyTuple_SET_ITEM(op, i, v) ((void)(_PyTuple_CAST(op)->ob_item[i] = v))
+#define PyTuple_SET_ITEM(op, i, v) _Py_RVALUE(_PyTuple_CAST(op)->ob_item[i] = (v))
PyAPI_FUNC(void) _PyTuple_DebugMallocStats(FILE *out);