From fe4ff83049fc66b823252476f2cc173d9d493d84 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 10 Feb 2017 00:41:06 +0100 Subject: [PATCH] Issue #29507: Fix _PyObject_CallFunctionVa() is_size_t test was reversed. Bug spotted by INADA Naoki. --- Objects/abstract.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Objects/abstract.c b/Objects/abstract.c index 3d3304845e8..6c66b03aec6 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;