Remove unneeded casts to hashfunc.

This commit is contained in:
Georg Brandl 2010-10-18 07:32:48 +00:00
parent d49bf5e8a5
commit 00da4e0b5a
3 changed files with 5 additions and 5 deletions

View File

@ -2143,7 +2143,7 @@ PyTypeObject PyDict_Type = {
0, /* tp_as_number */ 0, /* tp_as_number */
&dict_as_sequence, /* tp_as_sequence */ &dict_as_sequence, /* tp_as_sequence */
&dict_as_mapping, /* tp_as_mapping */ &dict_as_mapping, /* tp_as_mapping */
(hashfunc)PyObject_HashNotImplemented, /* tp_hash */ PyObject_HashNotImplemented, /* tp_hash */
0, /* tp_call */ 0, /* tp_call */
0, /* tp_str */ 0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericGetAttr, /* tp_getattro */

View File

@ -2596,7 +2596,7 @@ PyTypeObject PyList_Type = {
0, /* tp_as_number */ 0, /* tp_as_number */
&list_as_sequence, /* tp_as_sequence */ &list_as_sequence, /* tp_as_sequence */
&list_as_mapping, /* tp_as_mapping */ &list_as_mapping, /* tp_as_mapping */
(hashfunc)PyObject_HashNotImplemented, /* tp_hash */ PyObject_HashNotImplemented, /* tp_hash */
0, /* tp_call */ 0, /* tp_call */
0, /* tp_str */ 0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericGetAttr, /* tp_getattro */

View File

@ -2114,7 +2114,7 @@ PyTypeObject PySet_Type = {
&set_as_number, /* tp_as_number */ &set_as_number, /* tp_as_number */
&set_as_sequence, /* tp_as_sequence */ &set_as_sequence, /* tp_as_sequence */
0, /* tp_as_mapping */ 0, /* tp_as_mapping */
(hashfunc)PyObject_HashNotImplemented, /* tp_hash */ PyObject_HashNotImplemented, /* tp_hash */
0, /* tp_call */ 0, /* tp_call */
0, /* tp_str */ 0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */ PyObject_GenericGetAttr, /* tp_getattro */
@ -2126,8 +2126,8 @@ PyTypeObject PySet_Type = {
(traverseproc)set_traverse, /* tp_traverse */ (traverseproc)set_traverse, /* tp_traverse */
(inquiry)set_clear_internal, /* tp_clear */ (inquiry)set_clear_internal, /* tp_clear */
(richcmpfunc)set_richcompare, /* tp_richcompare */ (richcmpfunc)set_richcompare, /* tp_richcompare */
offsetof(PySetObject, weakreflist), /* tp_weaklistoffset */ offsetof(PySetObject, weakreflist), /* tp_weaklistoffset */
(getiterfunc)set_iter, /* tp_iter */ (getiterfunc)set_iter, /* tp_iter */
0, /* tp_iternext */ 0, /* tp_iternext */
set_methods, /* tp_methods */ set_methods, /* tp_methods */
0, /* tp_members */ 0, /* tp_members */