Issue #29507: Fix _PyObject_CallFunctionVa()

is_size_t test was reversed. Bug spotted by INADA Naoki.
This commit is contained in:
Victor Stinner 2017-02-10 00:41:06 +01:00
parent 331bbe6aaa
commit fe4ff83049
1 changed files with 4 additions and 2 deletions

View File

@ -2616,10 +2616,12 @@ _PyObject_CallFunctionVa(PyObject *callable, const char *format,
}
if (is_size_t) {
stack = _Py_VaBuildStack(small_stack, small_stack_len, format, va, &nargs);
stack = _Py_VaBuildStack_SizeT(small_stack, small_stack_len,
format, va, &nargs);
}
else {
stack = _Py_VaBuildStack_SizeT(small_stack, small_stack_len, format, va, &nargs);
stack = _Py_VaBuildStack(small_stack, small_stack_len,
format, va, &nargs);
}
if (stack == NULL) {
return NULL;