]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
super_getattro(): Repaired compiler warning about mixed-type comparison.
authorTim Peters <tim.peters@gmail.com>
Tue, 11 May 2004 16:35:05 +0000 (16:35 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 11 May 2004 16:35:05 +0000 (16:35 +0000)
Objects/typeobject.c

index 81c2baee70171bcaadd9b061be55ab924d4b78ae..9213ff0334df6dfa5d469794059cbc485861c562 100644 (file)
@@ -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);