gh-108444: Argument Clinic uses PyLong_AsInt() (#108458)

Argument Clinic now uses the new public PyLong_AsInt(), rather than
the old name _PyLong_AsInt().
This commit is contained in:
Victor Stinner 2023-08-25 00:51:22 +02:00 committed by GitHub
parent be800f4be7
commit 4e5a7284ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
73 changed files with 467 additions and 466 deletions

View file

@ -411,7 +411,7 @@ _imp__override_frozen_modules_for_tests(PyObject *module, PyObject *arg)
PyObject *return_value = NULL;
int override;
override = _PyLong_AsInt(arg);
override = PyLong_AsInt(arg);
if (override == -1 && PyErr_Occurred()) {
goto exit;
}
@ -442,7 +442,7 @@ _imp__override_multi_interp_extensions_check(PyObject *module, PyObject *arg)
PyObject *return_value = NULL;
int override;
override = _PyLong_AsInt(arg);
override = PyLong_AsInt(arg);
if (override == -1 && PyErr_Occurred()) {
goto exit;
}
@ -627,4 +627,4 @@ exit:
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
#define _IMP_EXEC_DYNAMIC_METHODDEF
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
/*[clinic end generated code: output=a95ec234672280a2 input=a9049054013a1b77]*/
/*[clinic end generated code: output=d97b56ef622cb28a input=a9049054013a1b77]*/