summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-02-09 23:41:06 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-02-09 23:41:06 (GMT)
commitfe4ff83049fc66b823252476f2cc173d9d493d84 (patch)
treed765b15fa871f06859474b795f80a9052d38c7f4 /Objects
parent331bbe6aaa74f8d28f27b79e8c6a0c35dbe9a6ab (diff)
downloadcpython-fe4ff83049fc66b823252476f2cc173d9d493d84.zip
cpython-fe4ff83049fc66b823252476f2cc173d9d493d84.tar.gz
cpython-fe4ff83049fc66b823252476f2cc173d9d493d84.tar.bz2
Issue #29507: Fix _PyObject_CallFunctionVa()
is_size_t test was reversed. Bug spotted by INADA Naoki.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 3d33048..6c66b03 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -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;