mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
4e5a7284ee
commit
b32d4cad15
18 changed files with 32 additions and 32 deletions
|
@ -476,7 +476,7 @@ compute_localsplus_info(_PyCompile_CodeUnitMetadata *umd, int nlocalsplus,
|
|||
PyObject *k, *v;
|
||||
Py_ssize_t pos = 0;
|
||||
while (PyDict_Next(umd->u_varnames, &pos, &k, &v)) {
|
||||
int offset = _PyLong_AsInt(v);
|
||||
int offset = PyLong_AsInt(v);
|
||||
if (offset == -1 && PyErr_Occurred()) {
|
||||
return ERROR;
|
||||
}
|
||||
|
@ -513,7 +513,7 @@ compute_localsplus_info(_PyCompile_CodeUnitMetadata *umd, int nlocalsplus,
|
|||
continue;
|
||||
}
|
||||
|
||||
int offset = _PyLong_AsInt(v);
|
||||
int offset = PyLong_AsInt(v);
|
||||
if (offset == -1 && PyErr_Occurred()) {
|
||||
return ERROR;
|
||||
}
|
||||
|
@ -525,7 +525,7 @@ compute_localsplus_info(_PyCompile_CodeUnitMetadata *umd, int nlocalsplus,
|
|||
|
||||
pos = 0;
|
||||
while (PyDict_Next(umd->u_freevars, &pos, &k, &v)) {
|
||||
int offset = _PyLong_AsInt(v);
|
||||
int offset = PyLong_AsInt(v);
|
||||
if (offset == -1 && PyErr_Occurred()) {
|
||||
return ERROR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue