From: Georg Brandl Date: Mon, 18 Oct 2010 07:32:48 +0000 (+0000) Subject: Remove unneeded casts to hashfunc. X-Git-Tag: v3.2a4~446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00da4e0b5a31bf017958f01233b51201c0279eaf;p=thirdparty%2FPython%2Fcpython.git Remove unneeded casts to hashfunc. --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index f676aa0dd9d3..c6ca40cdfe16 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -2143,7 +2143,7 @@ PyTypeObject PyDict_Type = { 0, /* tp_as_number */ &dict_as_sequence, /* tp_as_sequence */ &dict_as_mapping, /* tp_as_mapping */ - (hashfunc)PyObject_HashNotImplemented, /* tp_hash */ + PyObject_HashNotImplemented, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ diff --git a/Objects/listobject.c b/Objects/listobject.c index 88478f3db01c..0f4552510ada 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2596,7 +2596,7 @@ PyTypeObject PyList_Type = { 0, /* tp_as_number */ &list_as_sequence, /* tp_as_sequence */ &list_as_mapping, /* tp_as_mapping */ - (hashfunc)PyObject_HashNotImplemented, /* tp_hash */ + PyObject_HashNotImplemented, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ diff --git a/Objects/setobject.c b/Objects/setobject.c index 54b14da21c58..8d4bcf3c0f11 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -2114,7 +2114,7 @@ PyTypeObject PySet_Type = { &set_as_number, /* tp_as_number */ &set_as_sequence, /* tp_as_sequence */ 0, /* tp_as_mapping */ - (hashfunc)PyObject_HashNotImplemented, /* tp_hash */ + PyObject_HashNotImplemented, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ @@ -2126,8 +2126,8 @@ PyTypeObject PySet_Type = { (traverseproc)set_traverse, /* tp_traverse */ (inquiry)set_clear_internal, /* tp_clear */ (richcmpfunc)set_richcompare, /* tp_richcompare */ - offsetof(PySetObject, weakreflist), /* tp_weaklistoffset */ - (getiterfunc)set_iter, /* tp_iter */ + offsetof(PySetObject, weakreflist), /* tp_weaklistoffset */ + (getiterfunc)set_iter, /* tp_iter */ 0, /* tp_iternext */ set_methods, /* tp_methods */ 0, /* tp_members */