https://github.com/python/cpython/commit/a2495ff1e7b370c26128aa41298edb9ff06b5666
commit: a2495ff1e7b370c26128aa41298edb9ff06b5666
branch: main
author: Alper <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-02-06T22:11:58-05:00
summary:

gh-144490: Fix C++ compatibility in pycore_cell.h (GH-144482)

files:
M Include/internal/pycore_cell.h

diff --git a/Include/internal/pycore_cell.h b/Include/internal/pycore_cell.h
index cef01e80514f4b..d0d45a2343654f 100644
--- a/Include/internal/pycore_cell.h
+++ b/Include/internal/pycore_cell.h
@@ -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;
     }

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to