Issue #29507: Fix _PyObject_CallFunctionVa()
is_size_t test was reversed. Bug spotted by INADA Naoki.
This commit is contained in:
parent
331bbe6aaa
commit
fe4ff83049
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue