From: Stefan Behnel Date: Sat, 21 Feb 2009 17:07:01 +0000 (+0100) Subject: fix long literals in Py3 X-Git-Tag: 0.11.rc~67 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a42fcbf32bc5d91db4cc7d67697398f0e5214249;p=cython.git fix long literals in Py3 --- diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 55742e60..99c0203f 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -354,7 +354,7 @@ class GlobalState(object): if entry.init[-1] == "L": self.initwriter.putln('%s = PyLong_FromString((char *)"%s", 0, 0); %s;' % ( entry.cname, - entry.init, + entry.init[:-1], self.initwriter.error_goto_if_null(entry.cname, self.module_pos))) else: self.initwriter.putln("%s = PyInt_FromLong(%s); %s;" % (