summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-24 23:43:52 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-24 23:43:52 (GMT)
commitf1624cd2d640949de2af6e6cd6ab75c1d95fe3a3 (patch)
treee177a792da047d8bc95746113ae4c4fc66c6a068 /Objects/listobject.c
parentdc5f6b232be9f669f78d627cdcacc07d2ba167af (diff)
downloadcpython-f1624cd2d640949de2af6e6cd6ab75c1d95fe3a3.zip
cpython-f1624cd2d640949de2af6e6cd6ab75c1d95fe3a3.tar.gz
cpython-f1624cd2d640949de2af6e6cd6ab75c1d95fe3a3.tar.bz2
Fix a bunch of compiler warnings. In at least one case these were serious bugs!
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 3d81656..9a11680 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -1979,7 +1979,7 @@ is_default_cmp(PyObject *cmpfunc)
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))