summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2020-10-27 18:55:52 (GMT)
committerGitHub <noreply@github.com>2020-10-27 18:55:52 (GMT)
commit0564aafb71a153dd0aca4b9266dfae9336a4f2cb (patch)
treed1bb2a8f760702cccc690f2cbc79bbf916c481b3 /Python
parent15acc4eaba8519d7d5f2acaffde65446b44dcf79 (diff)
downloadcpython-0564aafb71a153dd0aca4b9266dfae9336a4f2cb.zip
cpython-0564aafb71a153dd0aca4b9266dfae9336a4f2cb.tar.gz
cpython-0564aafb71a153dd0aca4b9266dfae9336a4f2cb.tar.bz2
bpo-42099: Fix reference to ob_type in unionobject.c and ceval (GH-22829)
* Use Py_TYPE() rather than o->ob_type.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 7338be5..13b209f 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3193,7 +3193,7 @@ main_loop:
descr = _PyType_Lookup(type, name);
if (descr == NULL ||
- descr->ob_type->tp_descr_get == NULL ||
+ Py_TYPE(descr)->tp_descr_get == NULL ||
!PyDescr_IsData(descr))
{
dictptr = (PyObject **) ((char *)owner + type->tp_dictoffset);