From 5787ef621a76dfe225308f0001d60e5e46e9a55f Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 12 May 2016 10:32:30 +0300 Subject: [PATCH] Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs(). --- Objects/floatobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/floatobject.c b/Objects/floatobject.c index f640dd3e1f2..5b2742a6c85 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;