diff Objects/listobject.c @ 39658:a5048c8d8f33

Fix a bunch of compiler warnings. In at least one case these were serious bugs!
author Guido van Rossum <guido@python.org>
date Thu, 24 Aug 2006 23:43:52 +0000
parents 13d5e5f0e993
children cc992d75d5b3
line wrap: on
line diff
--- a/Objects/listobject.c	Thu Aug 24 21:29:26 2006 +0000
+++ b/Objects/listobject.c	Thu Aug 24 23:43:52 2006 +0000
@@ -1979,7 +1979,7 @@
 		return 1;
 	if (!PyCFunction_Check(cmpfunc))
 		return 0;
-	f = (PyCFunction *)cmpfunc;
+	f = (PyCFunctionObject *)cmpfunc;
 	if (f->m_self != NULL)
 		return 0;
 	if (!PyString_Check(f->m_module))