]> granicus.if.org Git - python/commitdiff
Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs().
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 12 May 2016 07:32:30 +0000 (10:32 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 12 May 2016 07:32:30 +0000 (10:32 +0300)
Objects/floatobject.c

index f640dd3e1f25201e180a623ab8736864285855f4..5b2742a6c853e1bd6c0903ecc698c674e4099d78 100644 (file)
@@ -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;