Commit a42fcbf3 authored by Stefan Behnel's avatar Stefan Behnel

fix long literals in Py3

parent 30867450
......@@ -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;" % (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment