Skip to content

Commit a907356

Browse files
authored
gh-110481: Fix typo in Py_SET_REFCNT() (#112595)
1 parent 0daf555 commit a907356

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)