Skip to content

Commit e397b9b

Browse files
vstinneraisk
authored andcommitted
pythongh-110481: Fix typo in Py_SET_REFCNT() (python#112595)
1 parent f3e7dcd commit e397b9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Include/object.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) {
357357
if (_Py_IsOwnedByCurrentThread(ob)) {
358358
if ((size_t)refcnt > (size_t)UINT32_MAX) {
359359
// On overflow, make the object immortal
360-
op->ob_tid = _Py_UNOWNED_TID;
361-
op->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL;
362-
op->ob_ref_shared = 0;
360+
ob->ob_tid = _Py_UNOWNED_TID;
361+
ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL;
362+
ob->ob_ref_shared = 0;
363363
}
364364
else {
365365
// Set local refcount to desired refcount and shared refcount

0 commit comments

Comments
 (0)