Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
dg-pb committed Dec 18, 2024
1 parent 3647c25 commit f9e3fd4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Modules/_functoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,6 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
return NULL;
}

/* Total sizes */
Py_ssize_t tot_nargs = pto_nargs + nargs - pto_phcount;
Py_ssize_t tot_nkwds;
Py_ssize_t tot_nargskw;

PyObject **pto_args = _PyTuple_ITEMS(pto->args);

/* Special cases */
Expand Down Expand Up @@ -437,16 +432,17 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
}
}

tot_nkwds = pto_nkwds + nkwds;
tot_nargskw = tot_nargs + tot_nkwds;
/* Total sizes */
Py_ssize_t tot_nargs = pto_nargs + nargs - pto_phcount;
Py_ssize_t tot_nkwds = pto_nkwds + nkwds;
Py_ssize_t tot_nargskw = tot_nargs + tot_nkwds;

PyObject **stack, *small_stack[_PY_FASTCALL_SMALL_STACK];
PyObject *tot_kwnames = kwnames;

/* Initialize stack & copy keywords to stack */
if (!pto_nkwds) {
/* Allocate Stack */
tot_nkwds = pto_nkwds + nkwds;
tot_nargskw = tot_nargs + tot_nkwds;
ALLOCATE_STACK(sizeof(PyObject *), tot_nargskw, small_stack, stack);

if (nkwds) {
Expand Down

0 comments on commit f9e3fd4

Please sign in to comment.