changeset: 101303:1bae2a6bb37c user: Serhiy Storchaka date: Thu May 12 10:32:30 2016 +0300 files: Objects/floatobject.c description: Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs(). diff -r 3b19660611a4 -r 1bae2a6bb37c Objects/floatobject.c --- a/Objects/floatobject.c Thu May 12 10:21:14 2016 +0300 +++ b/Objects/floatobject.c Thu May 12 10:32:30 2016 +0300 @@ -1412,7 +1412,7 @@ 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;