Fix for python 3

This commit is contained in:
Siu Kwan Lam 2013-02-27 13:48:08 -06:00
commit 93cd20e933
8 changed files with 41 additions and 28 deletions

View file

@ -179,7 +179,7 @@ class ExecutionEngine(llvm.Wrapper):
self._ptr.DisableLazyCompilation(disabled)
def run_function(self, fn, args):
ptr = self._ptr.runFunction(fn._ptr, map(lambda x: x._ptr, args))
ptr = self._ptr.runFunction(fn._ptr, list(map(lambda x: x._ptr, args)))
return GenericValue(ptr)
def get_pointer_to_function(self, fn):