]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed a problem found by Bill Janssen on Mac OS X
authorChristian Heimes <christian@cheimes.de>
Sun, 2 Dec 2007 22:43:00 +0000 (22:43 +0000)
committerChristian Heimes <christian@cheimes.de>
Sun, 2 Dec 2007 22:43:00 +0000 (22:43 +0000)
There was one occurence of PyInt_FromLong left in Parser/asdl_c.py. The files creates some C code.

Parser/asdl_c.py

index 24b732c23bf1347c9088545eb73ad36e1dc63546..15a752fcdbbb93437819fa4d411e289134de4392 100755 (executable)
@@ -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)