summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-15 11:36:50 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-15 11:36:50 (GMT)
commitd1e35dd9ee50adf2c69445893ce4e5576b983091 (patch)
tree74819772c5c7a54eb47750c5f749e68b1804dc0a /Objects/abstract.c
parent44dcd1e1d53aff424219685590de196d296b3504 (diff)
downloadcpython-d1e35dd9ee50adf2c69445893ce4e5576b983091.zip
cpython-d1e35dd9ee50adf2c69445893ce4e5576b983091.tar.gz
cpython-d1e35dd9ee50adf2c69445893ce4e5576b983091.tar.bz2
Fix _PyObject_CallFunctionVa(), use the small stack
Issue #28915. Oops, I disabled the small stack to test both code paths. It's now fixed.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 8447fdb..7da97ac 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -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;