--- Python-2.4.2/Objects/typeobject.c.orig 2005-09-20 11:36:07.000000000 -0500 +++ Python-2.4.2/Objects/typeobject.c 2006-02-20 15:19:52.000000000 -0600 @@ -5705,7 +5705,7 @@ return -1; Py_INCREF(obj); } - Py_INCREF(type); + Py_INCREF((PyObject *)type); su->type = type; su->obj = obj; su->obj_type = obj_type;