Commit 43edb972 authored by Serhiy Storchaka's avatar Serhiy Storchaka

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

parent 609f6ad3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment