Kaydet (Commit) 5787ef62 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

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

üst 25885d1d
...@@ -1412,7 +1412,7 @@ float_fromhex(PyObject *cls, PyObject *arg) ...@@ -1412,7 +1412,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
goto parse_error; goto parse_error;
result = PyFloat_FromDouble(negate ? -x : x); result = PyFloat_FromDouble(negate ? -x : x);
if (cls != (PyObject *)&PyFloat_Type && result != NULL) { if (cls != (PyObject *)&PyFloat_Type && result != NULL) {
Py_SETREF(result, PyObject_CallFunctionObjArgs(cls, result)); Py_SETREF(result, PyObject_CallFunctionObjArgs(cls, result, NULL));
} }
return result; 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