Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 32058:f63dd299a60b 2.3
super_getattro(): Repaired compiler warning about mixed-type comparison.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Tue, 11 May 2004 16:35:05 +0000 |
| parents | 277b5a2f08f5 |
| children | b054cff7bb86 |
line wrap: on
line diff
--- a/Objects/typeobject.c Tue May 11 15:21:20 2004 +0000 +++ b/Objects/typeobject.c Tue May 11 16:35:05 2004 +0000 @@ -5501,7 +5501,8 @@ 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);
