Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 23127:70650ae1a2cf legacy-trunk
type_get_doc(): Squash compiler wng about incompatible ptr types.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Thu, 18 Apr 2002 04:12:28 +0000 |
| parents | f917e7a6e911 |
| children | f6ded6efabcf |
line wrap: on
line diff
--- a/Objects/typeobject.c Thu Apr 18 02:18:27 2002 +0000 +++ b/Objects/typeobject.c Thu Apr 18 04:12:28 2002 +0000 @@ -90,7 +90,8 @@ Py_INCREF(result); } else if (result->ob_type->tp_descr_get) { - result = result->ob_type->tp_descr_get(result, NULL, type); + result = result->ob_type->tp_descr_get(result, NULL, + (PyObject *)type); } else { Py_INCREF(result);
