diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-24 23:01:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 23:01:30 (GMT) |
commit | b32d4cad15f537f25063bcd56377e16df59d98db (patch) | |
tree | 0a71372347d58e79575f9dfae35407c694fcb611 /Python/assemble.c | |
parent | 4e5a7284eef4308dce252ca1115d4a5a5b7e6ae8 (diff) | |
download | cpython-b32d4cad15f537f25063bcd56377e16df59d98db.zip cpython-b32d4cad15f537f25063bcd56377e16df59d98db.tar.gz cpython-b32d4cad15f537f25063bcd56377e16df59d98db.tar.bz2 |
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")
Diffstat (limited to 'Python/assemble.c')
-rw-r--r-- | Python/assemble.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/assemble.c b/Python/assemble.c index c770fd1..b6fb432 100644 --- a/Python/assemble.c +++ b/Python/assemble.c @@ -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; } |