summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-05-13 20:42:55 (GMT)
committerGitHub <noreply@github.com>2021-05-13 20:42:55 (GMT)
commite0c614e5fd017ca43cab55a9f8490133750c704f (patch)
tree4ac128b35f876310acfa200922d7994bae36b9c8
parent1aa3530314d339725519f4ad95b7dea4b00b657e (diff)
downloadcpython-e0c614e5fd017ca43cab55a9f8490133750c704f.zip
cpython-e0c614e5fd017ca43cab55a9f8490133750c704f.tar.gz
cpython-e0c614e5fd017ca43cab55a9f8490133750c704f.tar.bz2
bpo-44114: Remove redundant cast. (GH-26098)
-rw-r--r--Objects/dictobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 90507d8..24973c0 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -4834,7 +4834,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 */
};
@@ -4915,7 +4915,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 */
};