Skip to content

Commit f9e3fd4

Browse files
committed
small edits
1 parent 3647c25 commit f9e3fd4

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Modules/_functoolsmodule.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,6 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
398398
return NULL;
399399
}
400400

401-
/* Total sizes */
402-
Py_ssize_t tot_nargs = pto_nargs + nargs - pto_phcount;
403-
Py_ssize_t tot_nkwds;
404-
Py_ssize_t tot_nargskw;
405-
406401
PyObject **pto_args = _PyTuple_ITEMS(pto->args);
407402

408403
/* Special cases */
@@ -437,16 +432,17 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
437432
}
438433
}
439434

440-
tot_nkwds = pto_nkwds + nkwds;
441-
tot_nargskw = tot_nargs + tot_nkwds;
435+
/* Total sizes */
436+
Py_ssize_t tot_nargs = pto_nargs + nargs - pto_phcount;
437+
Py_ssize_t tot_nkwds = pto_nkwds + nkwds;
438+
Py_ssize_t tot_nargskw = tot_nargs + tot_nkwds;
439+
442440
PyObject **stack, *small_stack[_PY_FASTCALL_SMALL_STACK];
443441
PyObject *tot_kwnames = kwnames;
444442

445443
/* Initialize stack & copy keywords to stack */
446444
if (!pto_nkwds) {
447445
/* Allocate Stack */
448-
tot_nkwds = pto_nkwds + nkwds;
449-
tot_nargskw = tot_nargs + tot_nkwds;
450446
ALLOCATE_STACK(sizeof(PyObject *), tot_nargskw, small_stack, stack);
451447

452448
if (nkwds) {

0 commit comments

Comments
 (0)