mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs().
This commit is contained in:
parent
25885d1dc5
commit
5787ef621a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue