mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Make asdl_c.py to generate Python-ast.c changed in issue #15989.
This commit is contained in:
parent
564cf7b62c
commit
481d3af82e
@ -898,7 +898,7 @@ static int obj2ast_int(PyObject* obj, int* out, PyArena* arena)
|
||||
return 1;
|
||||
}
|
||||
|
||||
i = (int)PyLong_AsLong(obj);
|
||||
i = _PyLong_AsInt(obj);
|
||||
if (i == -1 && PyErr_Occurred())
|
||||
return 1;
|
||||
*out = i;
|
||||
|
Loading…
Reference in New Issue
Block a user