Issue #6151: Make PyDescr_COMMON conform to standard C.

This commit is contained in:
Alexandre Vassalotti 2009-07-22 03:56:36 +00:00
parent cf76e1ac92
commit 2db046dc39
4 changed files with 31 additions and 23 deletions

View file

@ -5648,7 +5648,7 @@ update_one_slot(PyTypeObject *type, slotdef *p)
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)