Make asdl_c.py to generate Python-ast.c changed in issue #15989.

This commit is contained in:
Serhiy Storchaka 2015-09-06 23:29:04 +03:00
parent 564cf7b62c
commit 481d3af82e
1 changed files with 1 additions and 1 deletions

View File

@ -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;