From: Hye-Shik Chang Date: Thu, 25 Mar 2004 16:37:03 +0000 (+0000) Subject: Get rid of gcc warning. X-Git-Tag: v2.4a1~569 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff365c931b063db51395118d1817506f0f0cea1f;p=python Get rid of gcc warning. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 209ec329d7..818572fa6f 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5542,7 +5542,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);