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:
@@ -2412,13 +2412,13 @@ build_cellfixedoffsets(_PyCompile_CodeUnitMetadata *umd)
|
||||
continue;
|
||||
}
|
||||
|
||||
int argoffset = _PyLong_AsInt(varindex);
|
||||
int argoffset = PyLong_AsInt(varindex);
|
||||
Py_DECREF(varindex);
|
||||
if (argoffset == -1 && PyErr_Occurred()) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
int oldindex = _PyLong_AsInt(cellindex);
|
||||
int oldindex = PyLong_AsInt(cellindex);
|
||||
if (oldindex == -1 && PyErr_Occurred()) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user