summaryrefslogtreecommitdiff
path: root/Include/cpython/cellobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/cellobject.h')
-rw-r--r--Include/cpython/cellobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/cellobject.h b/Include/cpython/cellobject.h
index 8dc7b8f4cf..e07f9d1de7 100644
--- a/Include/cpython/cellobject.h
+++ b/Include/cpython/cellobject.h
@@ -22,7 +22,7 @@ PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);
#define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
-#define PyCell_SET(op, v) ((void)(((PyCellObject *)(op))->ob_ref = v))
+#define PyCell_SET(op, v) _Py_RVALUE(((PyCellObject *)(op))->ob_ref = (v))
#ifdef __cplusplus
}