bpo-39573: Use Py_REFCNT() macro (GH-18388)
Replace direct acccess to PyObject.ob_refcnt with usage of the Py_REFCNT() macro.
This commit is contained in:
@@ -1656,7 +1656,7 @@ static Py_ssize_t
|
||||
sys_getrefcount_impl(PyObject *module, PyObject *object)
|
||||
/*[clinic end generated code: output=5fd477f2264b85b2 input=bf474efd50a21535]*/
|
||||
{
|
||||
return object->ob_refcnt;
|
||||
return Py_REFCNT(object);
|
||||
}
|
||||
|
||||
#ifdef Py_REF_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user