diff Objects/typeobject.c @ 23131:90adbcf62013 2.2

Darn. Of course the warning that Tim killed on the trunk must also be killed in the branch.
author Guido van Rossum <guido@python.org>
date Thu, 18 Apr 2002 04:47:10 +0000
parents 737f4458e5de
children 46ffb149ea73
line wrap: on
line diff
--- a/Objects/typeobject.c	Thu Apr 18 04:46:49 2002 +0000
+++ b/Objects/typeobject.c	Thu Apr 18 04:47:10 2002 +0000
@@ -91,7 +91,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);