Skip to content

Commit d1e35dd

Browse files
committed
Fix _PyObject_CallFunctionVa(), use the small stack
Issue python#28915. Oops, I disabled the small stack to test both code paths. It's now fixed.
1 parent 44dcd1e commit d1e35dd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Objects/abstract.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,8 +2524,7 @@ _PyObject_CallFunctionVa(PyObject *callable, const char *format,
25242524
va_list va, int is_size_t)
25252525
{
25262526
PyObject* small_stack[5];
2527-
/*const Py_ssize_t small_stack_len = Py_ARRAY_LENGTH(small_stack);*/
2528-
const Py_ssize_t small_stack_len = 0;
2527+
const Py_ssize_t small_stack_len = Py_ARRAY_LENGTH(small_stack);
25292528
PyObject **stack;
25302529
Py_ssize_t nargs, i;
25312530
PyObject *result;

0 commit comments

Comments
 (0)