fixing warnings

This commit is contained in:
Alexander Mordvintsev
2014-08-19 14:57:47 +04:00
parent e74cddfbd1
commit c22dcb04af
3 changed files with 4 additions and 5 deletions

View File

@@ -821,7 +821,7 @@ class PythonWrapperGenerator(object):
self.code_ns_reg.write('static ConstDef consts_%s[] = {\n'%wname)
for name, cname in sorted(ns.consts.items()):
self.code_ns_reg.write(' {"%s", %s},\n'%(name, cname))
self.code_ns_reg.write(' {"%s", (long)(%s)},\n'%(name, cname))
self.code_ns_reg.write(' {NULL, NULL}\n};\n\n')
def gen_namespaces_reg(self):