From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 7 Feb 2026 03:37:41 +0000 (+0100) Subject: [3.14] gh-144490: Fix C++ compatibility in pycore_cell.h (GH-144482) (GH-144555) X-Git-Tag: v3.14.4~322 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60d42813523dc18be8484d611339434fc4d24b53;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-144490: Fix C++ compatibility in pycore_cell.h (GH-144482) (GH-144555) gh-144490: Fix C++ compatibility in pycore_cell.h (GH-144482) (cherry picked from commit a2495ff1e7b370c26128aa41298edb9ff06b5666) Co-authored-by: Alper --- diff --git a/Include/internal/pycore_cell.h b/Include/internal/pycore_cell.h index cef01e80514f..d0d45a234365 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; }