Skip to content

Commit a2495ff

Browse files
authored
gh-144490: Fix C++ compatibility in pycore_cell.h (GH-144482)
1 parent 74db440 commit a2495ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/internal/pycore_cell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ _PyCell_GetStackRef(PyCellObject *cell)
5353
{
5454
PyObject *value;
5555
#ifdef Py_GIL_DISABLED
56-
value = _Py_atomic_load_ptr(&cell->ob_ref);
56+
value = _PyObject_CAST(_Py_atomic_load_ptr(&cell->ob_ref));
5757
if (value == NULL) {
5858
return PyStackRef_NULL;
5959
}

0 commit comments

Comments
 (0)