[Python-checkins] cpython: Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs().
serhiy.storchaka
python-checkins at python.org
Thu May 12 03:32:52 EDT 2016
https://hg.python.org/cpython/rev/1bae2a6bb37c
changeset: 101303:1bae2a6bb37c
user: Serhiy Storchaka <storchaka at gmail.com>
date: Thu May 12 10:32:30 2016 +0300
summary:
Issue #27005: Fixed the call of PyObject_CallFunctionObjArgs().
files:
Objects/floatobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -1412,7 +1412,7 @@
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;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list