We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e7dcd commit e397b9bCopy full SHA for e397b9b
Include/object.h
@@ -357,9 +357,9 @@ static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) {
357
if (_Py_IsOwnedByCurrentThread(ob)) {
358
if ((size_t)refcnt > (size_t)UINT32_MAX) {
359
// 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;
+ ob->ob_tid = _Py_UNOWNED_TID;
+ ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL;
+ ob->ob_ref_shared = 0;
363
}
364
else {
365
// Set local refcount to desired refcount and shared refcount
0 commit comments