gh-108444: Replace _PyLong_AsInt() with PyLong_AsInt() (#108459)

Change generated by the command:

sed -i -e 's!_PyLong_AsInt!PyLong_AsInt!g' \
    $(find -name "*.c" -o -name "*.h")
This commit is contained in:
Victor Stinner 2023-08-25 01:01:30 +02:00 committed by GitHub
parent 4e5a7284ee
commit b32d4cad15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 32 additions and 32 deletions

View file

@ -1097,7 +1097,7 @@ config_dict_get_int(PyObject *dict, const char *name, int *result)
if (item == NULL) {
return -1;
}
int value = _PyLong_AsInt(item);
int value = PyLong_AsInt(item);
Py_DECREF(item);
if (value == -1 && PyErr_Occurred()) {
if (PyErr_ExceptionMatches(PyExc_TypeError)) {