diff options
author | Victor Stinner <vstinner@python.org> | 2020-02-07 00:38:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 00:38:59 +0100 |
commit | a93c51e3a8e15f1a486d11d5b55a64f3381babe0 (patch) | |
tree | a84997f6ca55cb27c92248dc04eda44e01a07a2a /Python/sysmodule.c | |
parent | 446463f8dbce0556be8020914f37089b63bb8ab6 (diff) | |
download | cpython-git-a93c51e3a8e15f1a486d11d5b55a64f3381babe0.tar.gz |
bpo-39573: Use Py_REFCNT() macro (GH-18388)
Replace direct acccess to PyObject.ob_refcnt with usage of the
Py_REFCNT() macro.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 1cb10300d7..d8d1874745 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -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 |