commit | 8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Fri Jul 10 12:40:38 2020 +0200 |
committer | GitHub <noreply@github.com> | Fri Jul 10 12:40:38 2020 +0200 |
tree | 697757da0c635614b16aafc81c3ea1172a634a53 | |
parent | d878349bac6c154fbfeffe7d4b38e2ddb833f135 [diff] [blame] |
bpo-39573: Use the Py_TYPE() macro (GH-21433) Replace obj->ob_type with Py_TYPE(obj).
diff --git a/Objects/genericaliasobject.c b/Objects/genericaliasobject.c index 4d511a2..87bd1ae 100644 --- a/Objects/genericaliasobject.c +++ b/Objects/genericaliasobject.c
@@ -20,7 +20,7 @@ Py_XDECREF(alias->origin); Py_XDECREF(alias->args); Py_XDECREF(alias->parameters); - self->ob_type->tp_free(self); + Py_TYPE(self)->tp_free(self); } static int