From: Tim Peters Date: Tue, 11 May 2004 16:35:05 +0000 (+0000) Subject: super_getattro(): Repaired compiler warning about mixed-type comparison. X-Git-Tag: v2.3.4c1~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d71fc0588886ab4893b2d8a6d4a97fe923ec5b9d;p=thirdparty%2FPython%2Fcpython.git super_getattro(): Repaired compiler warning about mixed-type comparison. --- 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);