Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Sep 24, 2024
1 parent ba5dc85 commit 45d84ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/internal/pycore_cell.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ _PyCell_GetStackRef(PyCellObject *cell, _PyStackRef *value_addr)
value = _Py_atomic_load_ptr(&cell->ob_ref);
if (value != NULL) {
if (_Py_IsImmortal(value) || _PyObject_HasDeferredRefcount(value)) {
*value_addr = (_PyStackRef){ .bits = (uintptr_t)obj | Py_TAG_DEFERRED };
*value_addr = (_PyStackRef){ .bits = (uintptr_t)value | Py_TAG_DEFERRED };
return;
}
if (_Py_TryIncrefCompare(&cell->ob_ref, value)) {
Expand Down

0 comments on commit 45d84ae

Please sign in to comment.