mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
bpo-37483: add _PyObject_CallOneArg() function (#14558)
This commit is contained in:
parent
9d40554e0d
commit
196a530e00
44 changed files with 128 additions and 146 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue