@@ -1891,8 +1891,9 @@ odictkeys_iter(_PyDictViewObject *dv)
18911891}
18921892
18931893static PyObject *
1894- odictkeys_reversed (_PyDictViewObject * dv , PyObject * Py_UNUSED (ignored ))
1894+ odictkeys_reversed (PyObject * op , PyObject * Py_UNUSED (ignored ))
18951895{
1896+ _PyDictViewObject * dv = (_PyDictViewObject * )op ;
18961897 if (dv -> dv_dict == NULL ) {
18971898 Py_RETURN_NONE ;
18981899 }
@@ -1901,7 +1902,7 @@ odictkeys_reversed(_PyDictViewObject *dv, PyObject *Py_UNUSED(ignored))
19011902}
19021903
19031904static PyMethodDef odictkeys_methods [] = {
1904- {"__reversed__" , ( PyCFunction ) odictkeys_reversed , METH_NOARGS , NULL },
1905+ {"__reversed__" , odictkeys_reversed , METH_NOARGS , NULL },
19051906 {NULL , NULL } /* sentinel */
19061907};
19071908
@@ -1958,8 +1959,9 @@ odictitems_iter(_PyDictViewObject *dv)
19581959}
19591960
19601961static PyObject *
1961- odictitems_reversed (_PyDictViewObject * dv , PyObject * Py_UNUSED (ignored ))
1962+ odictitems_reversed (PyObject * op , PyObject * Py_UNUSED (ignored ))
19621963{
1964+ _PyDictViewObject * dv = (_PyDictViewObject * )op ;
19631965 if (dv -> dv_dict == NULL ) {
19641966 Py_RETURN_NONE ;
19651967 }
@@ -1968,7 +1970,7 @@ odictitems_reversed(_PyDictViewObject *dv, PyObject *Py_UNUSED(ignored))
19681970}
19691971
19701972static PyMethodDef odictitems_methods [] = {
1971- {"__reversed__" , ( PyCFunction ) odictitems_reversed , METH_NOARGS , NULL },
1973+ {"__reversed__" , odictitems_reversed , METH_NOARGS , NULL },
19721974 {NULL , NULL } /* sentinel */
19731975};
19741976
0 commit comments