diff options
author | Christopher Chavez <chrischavez@gmx.us> | 2023-12-20 14:13:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 14:13:44 (GMT) |
commit | a545a86ec64fbab325db101bdd8964f524a89790 (patch) | |
tree | d0add398c3670db433ac223323208d3441c5df0c /Objects/object.c | |
parent | 57b7e52790ae56309832497a1ce17e3e731b920e (diff) | |
download | cpython-a545a86ec64fbab325db101bdd8964f524a89790.zip cpython-a545a86ec64fbab325db101bdd8964f524a89790.tar.gz cpython-a545a86ec64fbab325db101bdd8964f524a89790.tar.bz2 |
gh-111178: Make slot functions in typeobject.c have compatible types (GH-112752)
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index cdb7a08..d970a26 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1196,7 +1196,7 @@ PyObject_GetOptionalAttr(PyObject *v, PyObject *name, PyObject **result) } return 0; } - if (tp->tp_getattro == (getattrofunc)_Py_type_getattro) { + if (tp->tp_getattro == _Py_type_getattro) { int supress_missing_attribute_exception = 0; *result = _Py_type_getattro_impl((PyTypeObject*)v, name, &supress_missing_attribute_exception); if (supress_missing_attribute_exception) { |