]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44114: Remove redundant cast. (GH-26098)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 May 2021 21:07:16 +0000 (14:07 -0700)
committerGitHub <noreply@github.com>
Thu, 13 May 2021 21:07:16 +0000 (14:07 -0700)
(cherry picked from commit e0c614e5fd017ca43cab55a9f8490133750c704f)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Objects/dictobject.c

index 8a056530a454593aec872222a569afc3bb904637..06412a9d87aaf8fc5a34db39e54de433cd6bf5d2 100644 (file)
@@ -4623,7 +4623,7 @@ PyDoc_STRVAR(reversed_items_doc,
 static PyMethodDef dictitems_methods[] = {
     {"isdisjoint",      (PyCFunction)dictviews_isdisjoint,  METH_O,
      isdisjoint_doc},
-    {"__reversed__",    (PyCFunction)(void(*)(void))dictitems_reversed,    METH_NOARGS,
+    {"__reversed__",    (PyCFunction)dictitems_reversed,    METH_NOARGS,
      reversed_items_doc},
     {NULL,              NULL}           /* sentinel */
 };
@@ -4704,7 +4704,7 @@ PyDoc_STRVAR(reversed_values_doc,
 "Return a reverse iterator over the dict values.");
 
 static PyMethodDef dictvalues_methods[] = {
-    {"__reversed__",    (PyCFunction)(void(*)(void))dictvalues_reversed,    METH_NOARGS,
+    {"__reversed__",    (PyCFunction)dictvalues_reversed,    METH_NOARGS,
      reversed_values_doc},
     {NULL,              NULL}           /* sentinel */
 };