[pypy-svn] r76180 - pypy/branch/reflex-support/pypy/module/cppyy
antocuni at codespeak.net
antocuni at codespeak.net
Tue Jul 13 14:29:23 CEST 2010
Author: antocuni
Date: Tue Jul 13 14:29:22 2010
New Revision: 76180
Modified:
pypy/branch/reflex-support/pypy/module/cppyy/executor.py
Log:
fix translation
Modified: pypy/branch/reflex-support/pypy/module/cppyy/executor.py
==============================================================================
--- pypy/branch/reflex-support/pypy/module/cppyy/executor.py (original)
+++ pypy/branch/reflex-support/pypy/module/cppyy/executor.py Tue Jul 13 14:29:22 2010
@@ -39,8 +39,9 @@
def execute(self, space, func, cppthis, num_args, args):
from pypy.module.cppyy import interp_cppyy
- result = capi.c_call_l(func.cpptype.handle, func.method_index, cppthis, num_args, args)
- return interp_cppyy.W_CCPInstance(self.cpptype, result)
+ long_result = capi.c_call_l(func.cpptype.handle, func.method_index, cppthis, num_args, args)
+ ptr_result = rffi.cast(rffi.VOIDP, long_result)
+ return interp_cppyy.W_CCPInstance(self.cpptype, ptr_result)
def get_executor(space, name):
More information about the Pypy-commit
mailing list