diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-10-28 23:15:22 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-10-28 23:15:22 -0700 |
commit | 67f6717b1202ceb7d1cd7994ab33b3dafa21ac1a (patch) | |
tree | 73f9acc9619e12a4ac488659245b122ab22792e0 /Parser/asdl_c.py | |
parent | b1b4b143d9de7a7a444be0f91350c9e59a1b6f41 (diff) | |
parent | e24097068372f19e332a67c602a27eb029f99377 (diff) | |
download | cpython-67f6717b1202ceb7d1cd7994ab33b3dafa21ac1a.tar.gz |
merge 3.5 (#25502)
Diffstat (limited to 'Parser/asdl_c.py')
-rw-r--r--[-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 79e834b3dc..3128078c6b 100755..100644 --- 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; |