Skip to content

Commit 4de91be

Browse files
committed
Arguments offset.
1 parent d993e11 commit 4de91be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_sqlite/connection.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,14 +2003,14 @@ pysqlite_connection_iterdump_impl(pysqlite_Connection *self,
20032003
}
20042004
return NULL;
20052005
}
2006-
PyObject *args[2] = {(PyObject *)self, filter};
2006+
PyObject *args[3] = {NULL, (PyObject *)self, filter};
20072007
PyObject *kwnames = Py_BuildValue("(s)", "filter");
20082008
if (!kwnames) {
20092009
Py_DECREF(iterdump);
20102010
return NULL;
20112011
}
2012-
Py_ssize_t nargs = PyVectorcall_NARGS(1);
2013-
PyObject *retval = PyObject_Vectorcall(iterdump, args, nargs, kwnames);
2012+
Py_ssize_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET;
2013+
PyObject *retval = PyObject_Vectorcall(iterdump, args + 1, nargsf, kwnames);
20142014
Py_DECREF(iterdump);
20152015
Py_DECREF(kwnames);
20162016
return retval;

0 commit comments

Comments
 (0)