1. Pypy
  2. Untitled project
  3. pypy

Commits

wlav  committed bf6fc9a

for by-value returns, there is no reason to cast

  • Participants
  • Parent commits 4882fbb
  • Branches reflex-support

Comments (0)

Files changed (1)

File pypy/module/cppyy/executor.py

View file
         from pypy.module.cppyy import interp_cppyy
         long_result = capi.c_call_o(cppmethod, cppthis, num_args, args, self.cppclass)
         ptr_result = rffi.cast(capi.C_OBJECT, long_result)
-        return interp_cppyy.wrap_cppobject(
+        return interp_cppyy.wrap_cppobject_nocast(
             space, space.w_None, self.cppclass, ptr_result, isref=False, python_owns=True)
 
     def execute_libffi(self, space, cif_descr, funcaddr, buffer):