diff options
author | Victor Stinner <vstinner@python.org> | 2023-12-01 15:54:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 15:54:40 (GMT) |
commit | a9073564ee50bc610e1fd36e45b0a5204618883a (patch) | |
tree | 59079058d36facc584300a3ae6066e50192ec1a3 /Include/object.h | |
parent | 0daf555c6fb3feba77989382135a58215e1d70a5 (diff) | |
download | cpython-a9073564ee50bc610e1fd36e45b0a5204618883a.zip cpython-a9073564ee50bc610e1fd36e45b0a5204618883a.tar.gz cpython-a9073564ee50bc610e1fd36e45b0a5204618883a.tar.bz2 |
gh-110481: Fix typo in Py_SET_REFCNT() (#112595)
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/object.h b/Include/object.h index 86fcba2..81f777a 100644 --- a/Include/object.h +++ b/Include/object.h @@ -357,9 +357,9 @@ static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { if (_Py_IsOwnedByCurrentThread(ob)) { if ((size_t)refcnt > (size_t)UINT32_MAX) { // On overflow, make the object immortal - op->ob_tid = _Py_UNOWNED_TID; - op->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; - op->ob_ref_shared = 0; + ob->ob_tid = _Py_UNOWNED_TID; + ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; + ob->ob_ref_shared = 0; } else { // Set local refcount to desired refcount and shared refcount |