Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs().
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index f640dd3..5b2742a 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -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;