From 196a530e00d88a138973bf9182e013937e293f97 Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Thu, 4 Jul 2019 12:31:34 +0200 Subject: bpo-37483: add _PyObject_CallOneArg() function (#14558) --- Objects/longobject.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Objects/longobject.c') diff --git a/Objects/longobject.c b/Objects/longobject.c index 50ea2a4e54..3978f5c4a1 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -5611,8 +5611,7 @@ int_from_bytes_impl(PyTypeObject *type, PyObject *bytes_obj, Py_DECREF(bytes); if (long_obj != NULL && type != &PyLong_Type) { - Py_SETREF(long_obj, PyObject_CallFunctionObjArgs((PyObject *)type, - long_obj, NULL)); + Py_SETREF(long_obj, _PyObject_CallOneArg((PyObject *)type, long_obj)); } return long_obj; -- cgit v1.2.1