Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs().

This commit is contained in:
Serhiy Storchaka 2016-05-12 10:32:30 +03:00
parent 25885d1dc5
commit 5787ef621a
1 changed files with 1 additions and 1 deletions

View File

@ -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;