diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-09-06 20:29:04 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-09-06 20:29:04 (GMT) |
commit | 481d3af82e4fe507a995ade313c68d6b635e8757 (patch) | |
tree | 98ed005d49cdd6868eb24f253fabc72060b7434d /Parser | |
parent | 564cf7b62ced76a3cc87b16a8a278f0612673690 (diff) | |
download | cpython-481d3af82e4fe507a995ade313c68d6b635e8757.zip cpython-481d3af82e4fe507a995ade313c68d6b635e8757.tar.gz cpython-481d3af82e4fe507a995ade313c68d6b635e8757.tar.bz2 |
Make asdl_c.py to generate Python-ast.c changed in issue #15989.
Diffstat (limited to 'Parser')
-rwxr-xr-x | Parser/asdl_c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index a5e35d9..d597122 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -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; |