diff options
author | Victor Stinner <vstinner@python.org> | 2020-02-07 03:37:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 03:37:06 +0100 |
commit | daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8 (patch) | |
tree | 363abf13e467be17feb0e3eeffc3abe73c437264 /Modules/gcmodule.c | |
parent | 58ac700fb09497df14d4492b6f820109490b2b88 (diff) | |
download | cpython-git-daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8.tar.gz |
bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393)
Replace direct access to PyObject.ob_type with Py_TYPE().
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r-- | Modules/gcmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 99a6c9ed91..7e9eae50a8 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -653,7 +653,7 @@ untrack_dicts(PyGC_Head *head) static int has_legacy_finalizer(PyObject *op) { - return op->ob_type->tp_del != NULL; + return Py_TYPE(op)->tp_del != NULL; } /* Move the objects in unreachable with tp_del slots into `finalizers`. |