Fix _PyObject_CallFunctionVa(), use the small stack

Issue #28915. Oops, I disabled the small stack to test both code paths. It's
now fixed.
This commit is contained in:
Victor Stinner 2016-12-15 12:36:50 +01:00
parent 44dcd1e1d5
commit d1e35dd9ee
1 changed files with 1 additions and 2 deletions

View File

@ -2524,8 +2524,7 @@ _PyObject_CallFunctionVa(PyObject *callable, const char *format,
va_list va, int is_size_t)
{
PyObject* small_stack[5];
/*const Py_ssize_t small_stack_len = Py_ARRAY_LENGTH(small_stack);*/
const Py_ssize_t small_stack_len = 0;
const Py_ssize_t small_stack_len = Py_ARRAY_LENGTH(small_stack);
PyObject **stack;
Py_ssize_t nargs, i;
PyObject *result;