]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unneeded casts to hashfunc.
authorGeorg Brandl <georg@python.org>
Mon, 18 Oct 2010 07:32:48 +0000 (07:32 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 18 Oct 2010 07:32:48 +0000 (07:32 +0000)
Objects/dictobject.c
Objects/listobject.c
Objects/setobject.c

index f676aa0dd9d36d4bde81b16c2ba15d2e896c3690..c6ca40cdfe16edb13bf7d0f2e1566ff5726049f6 100644 (file)
@@ -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 */
index 88478f3db01cd0cae95dec3ae7d81f84604a15f5..0f4552510ada091c46d708691b1604e12ecf41fa 100644 (file)
@@ -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 */
index 54b14da21c58e07d3a88b77b8186e7cf70ca0ec2..8d4bcf3c0f1189a102c2207990e409658be779e7 100644 (file)
@@ -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 */