mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-108444: Remove _PyLong_AsInt() function (#108461)
* Update Parser/asdl_c.py to regenerate Python/Python-ast.c. * Remove _PyLong_AsInt() alias to PyLong_AsInt().
This commit is contained in:
parent
24aa249a66
commit
e59a95238b
3 changed files with 2 additions and 5 deletions
2
Python/Python-ast.c
generated
2
Python/Python-ast.c
generated
|
@ -1099,7 +1099,7 @@ static int obj2ast_int(struct ast_state* Py_UNUSED(state), PyObject* obj, int* o
|
|||
return 1;
|
||||
}
|
||||
|
||||
i = _PyLong_AsInt(obj);
|
||||
i = PyLong_AsInt(obj);
|
||||
if (i == -1 && PyErr_Occurred())
|
||||
return 1;
|
||||
*out = i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue