summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-12 07:32:30 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-12 07:32:30 (GMT)
commit5787ef621a76dfe225308f0001d60e5e46e9a55f (patch)
treeb27e6e4d3285aea81442df64687f6b11c103ee78
parent25885d1dc588ce82f4b05899705fb54cb8704a35 (diff)
downloadcpython-5787ef621a76dfe225308f0001d60e5e46e9a55f.zip
cpython-5787ef621a76dfe225308f0001d60e5e46e9a55f.tar.gz
cpython-5787ef621a76dfe225308f0001d60e5e46e9a55f.tar.bz2
Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs().
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;