aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-07-10 12:40:38 +0200
committerGitHub <noreply@github.com>2020-07-10 12:40:38 +0200
commit8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1 (patch)
tree697757da0c635614b16aafc81c3ea1172a634a53 /Objects/genericaliasobject.c
parentbpo-36346: Do not use legacy Unicode C API in ctypes. (#21429) (diff)
downloadcpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.tar.gz
cpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.tar.bz2
cpython-8182cc2e68a3c6ea5d5342fed3f1c76b0521fbc1.zip
bpo-39573: Use the Py_TYPE() macro (GH-21433)
Replace obj->ob_type with Py_TYPE(obj).
Diffstat (limited to 'Objects/genericaliasobject.c')
-rw-r--r--Objects/genericaliasobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genericaliasobject.c b/Objects/genericaliasobject.c
index 4d511a23906..87bd1ae5c14 100644
--- a/Objects/genericaliasobject.c
+++ b/Objects/genericaliasobject.c
@@ -20,7 +20,7 @@ ga_dealloc(PyObject *self)
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