From: Serhiy Storchaka Date: Thu, 12 May 2016 07:32:30 +0000 (+0300) Subject: Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs(). X-Git-Tag: v3.6.0a1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5787ef621a76dfe225308f0001d60e5e46e9a55f;p=thirdparty%2FPython%2Fcpython.git Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs(). --- diff --git a/Objects/floatobject.c b/Objects/floatobject.c index f640dd3e1f25..5b2742a6c853 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -1412,7 +1412,7 @@ float_fromhex(PyObject *cls, PyObject *arg) goto parse_error; result = PyFloat_FromDouble(negate ? -x : x); if (cls != (PyObject *)&PyFloat_Type && result != NULL) { - Py_SETREF(result, PyObject_CallFunctionObjArgs(cls, result)); + Py_SETREF(result, PyObject_CallFunctionObjArgs(cls, result, NULL)); } return result;