mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +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
|
@ -256,7 +256,7 @@ sys_trace_line_func(
|
|||
Py_RETURN_NONE;
|
||||
}
|
||||
assert(PyVectorcall_NARGS(nargsf) == 2);
|
||||
int line = _PyLong_AsInt(args[1]);
|
||||
int line = PyLong_AsInt(args[1]);
|
||||
assert(line >= 0);
|
||||
PyFrameObject *frame = PyEval_GetFrame();
|
||||
if (frame == NULL) {
|
||||
|
@ -282,9 +282,9 @@ sys_trace_jump_func(
|
|||
Py_RETURN_NONE;
|
||||
}
|
||||
assert(PyVectorcall_NARGS(nargsf) == 3);
|
||||
int from = _PyLong_AsInt(args[1])/sizeof(_Py_CODEUNIT);
|
||||
int from = PyLong_AsInt(args[1])/sizeof(_Py_CODEUNIT);
|
||||
assert(from >= 0);
|
||||
int to = _PyLong_AsInt(args[2])/sizeof(_Py_CODEUNIT);
|
||||
int to = PyLong_AsInt(args[2])/sizeof(_Py_CODEUNIT);
|
||||
assert(to >= 0);
|
||||
if (to > from) {
|
||||
/* Forward jump */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue