Skip to content

Commit dd64280

Browse files
authored
Make mappingproxy_get() compatible with _PyCFunctionFast
1 parent cb6f751 commit dd64280

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Objects/descrobject.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,8 +1107,9 @@ static PySequenceMethods mappingproxy_as_sequence = {
11071107
};
11081108

11091109
static PyObject *
1110-
mappingproxy_get(mappingproxyobject *pp, PyObject *const *args, Py_ssize_t nargs)
1110+
mappingproxy_get(PyObject *self, PyObject *const *args, Py_ssize_t nargs)
11111111
{
1112+
mappingproxyobject *pp = (mappingproxyobject *)self;
11121113
/* newargs: mapping, key, default=None */
11131114
PyObject *newargs[3];
11141115
newargs[0] = pp->mapping;

0 commit comments

Comments
 (0)