summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-03-25 16:37:03 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2004-03-25 16:37:03 (GMT)
commitff365c931b063db51395118d1817506f0f0cea1f (patch)
treebee2d3b2d15f5a15a1a6f51947852cec5c64f861 /Objects
parentad62202a5e806eb99f6b8e34dbc4c1661d8e358a (diff)
downloadcpython-ff365c931b063db51395118d1817506f0f0cea1f.zip
cpython-ff365c931b063db51395118d1817506f0f0cea1f.tar.gz
cpython-ff365c931b063db51395118d1817506f0f0cea1f.tar.bz2
Get rid of gcc warning.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 209ec32..818572f 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);