]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-144490: Fix C++ compatibility in pycore_cell.h (GH-144482)
authorAlper <alperyoney@fb.com>
Sat, 7 Feb 2026 03:11:58 +0000 (19:11 -0800)
committerGitHub <noreply@github.com>
Sat, 7 Feb 2026 03:11:58 +0000 (22:11 -0500)
Include/internal/pycore_cell.h

index cef01e80514f4b151b4535060ae5eeda3b12c1b5..d0d45a2343654fa93fc764168c7a82cc981baaeb 100644 (file)
@@ -53,7 +53,7 @@ _PyCell_GetStackRef(PyCellObject *cell)
 {
     PyObject *value;
 #ifdef Py_GIL_DISABLED
-    value = _Py_atomic_load_ptr(&cell->ob_ref);
+    value = _PyObject_CAST(_Py_atomic_load_ptr(&cell->ob_ref));
     if (value == NULL) {
         return PyStackRef_NULL;
     }