summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-02 22:43:00 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-02 22:43:00 (GMT)
commit2b1c592d22c16f3cb810625168ed1ce0c806d004 (patch)
treebdaf8c2cfec5e413241b06f3d25eb8e1403f2409 /Parser
parenta09ca3850f0c9169bb391bc6b1ee958c7cab89c2 (diff)
downloadcpython-2b1c592d22c16f3cb810625168ed1ce0c806d004.zip
cpython-2b1c592d22c16f3cb810625168ed1ce0c806d004.tar.gz
cpython-2b1c592d22c16f3cb810625168ed1ce0c806d004.tar.bz2
Fixed a problem found by Bill Janssen on Mac OS X
There was one occurence of PyInt_FromLong left in Parser/asdl_c.py. The files creates some C code.
Diffstat (limited to 'Parser')
-rwxr-xr-xParser/asdl_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 24b732c..15a752f 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -469,7 +469,7 @@ static PyObject* ast2obj_object(void *o)
static PyObject* ast2obj_int(long b)
{
- return PyInt_FromLong(b);
+ return PyLong_FromLong(b);
}
""", 0, reflow=False)