Skip to content

Commit 5787ef6

Browse files
Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs().
1 parent 25885d1 commit 5787ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
14121412
goto parse_error;
14131413
result = PyFloat_FromDouble(negate ? -x : x);
14141414
if (cls != (PyObject *)&PyFloat_Type && result != NULL) {
1415-
Py_SETREF(result, PyObject_CallFunctionObjArgs(cls, result));
1415+
Py_SETREF(result, PyObject_CallFunctionObjArgs(cls, result, NULL));
14161416
}
14171417
return result;
14181418

0 commit comments

Comments
 (0)