[Python-checkins] cpython: Make asdl_c.py to generate Python-ast.c changed in issue #15989.

serhiy.storchaka python-checkins at python.org
Sun Sep 6 22:29:47 CEST 2015


https://hg.python.org/cpython/rev/e53df7955192
changeset:   97714:e53df7955192
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Sep 06 23:29:04 2015 +0300
summary:
  Make asdl_c.py to generate Python-ast.c changed in issue #15989.

files:
  Parser/asdl_c.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -898,7 +898,7 @@
         return 1;
     }
 
-    i = (int)PyLong_AsLong(obj);
+    i = _PyLong_AsInt(obj);
     if (i == -1 && PyErr_Occurred())
         return 1;
     *out = i;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list