Skip to content
Prev Previous commit
Next Next commit
Arguments offset.
  • Loading branch information
felixxm committed Jan 25, 2024
commit 4de91bef164cd2a1bee4fcd66e1b108af02080b3
6 changes: 3 additions & 3 deletions Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2003,14 +2003,14 @@ pysqlite_connection_iterdump_impl(pysqlite_Connection *self,
}
return NULL;
}
PyObject *args[2] = {(PyObject *)self, filter};
PyObject *args[3] = {NULL, (PyObject *)self, filter};
PyObject *kwnames = Py_BuildValue("(s)", "filter");
if (!kwnames) {
Py_DECREF(iterdump);
return NULL;
}
Py_ssize_t nargs = PyVectorcall_NARGS(1);
PyObject *retval = PyObject_Vectorcall(iterdump, args, nargs, kwnames);
Py_ssize_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET;
PyObject *retval = PyObject_Vectorcall(iterdump, args + 1, nargsf, kwnames);
Py_DECREF(iterdump);
Py_DECREF(kwnames);
return retval;
Expand Down