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

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;