Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 55399:b7aabba84ee1
Issue #6151: Make PyDescr_COMMON conform to standard C.
| author | Alexandre Vassalotti <alexandre@peadrop.com> |
|---|---|
| date | Wed, 22 Jul 2009 03:56:36 +0000 |
| parents | 59cf5f808c24 |
| children | c5099818e0d4 |
line wrap: on
line diff
--- a/Objects/typeobject.c Wed Jul 22 03:24:36 2009 +0000 +++ b/Objects/typeobject.c Wed Jul 22 03:56:36 2009 +0000 @@ -5648,7 +5648,7 @@ generic = p->function; d = (PyWrapperDescrObject *)descr; if (d->d_base->wrapper == p->wrapper && - PyType_IsSubtype(type, d->d_type)) + PyType_IsSubtype(type, PyDescr_TYPE(d))) { if (specific == NULL || specific == d->d_wrapped)
