From d71fc0588886ab4893b2d8a6d4a97fe923ec5b9d Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 11 May 2004 16:35:05 +0000 Subject: [PATCH] super_getattro(): Repaired compiler warning about mixed-type comparison. --- Objects/typeobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 81c2baee7017..9213ff0334df 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5501,7 +5501,8 @@ super_getattro(PyObject *self, PyObject *name) this is instance-mode super (See SF ID #743627) */ - (su->obj==su->obj_type + (su->obj == + (PyObject *)su->obj_type ? (PyObject *)NULL : su->obj), (PyObject *)starttype); -- 2.47.3