Author: Wim Lavrijsen <wlavrij...@lbl.gov>
Branch: reflex-support
Changeset: r59432:bf6fc9a0c114
Date: 2012-12-13 16:15 -0800
http://bitbucket.org/pypy/pypy/changeset/bf6fc9a0c114/

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

diff --git a/pypy/module/cppyy/executor.py b/pypy/module/cppyy/executor.py
--- a/pypy/module/cppyy/executor.py
+++ b/pypy/module/cppyy/executor.py
@@ -188,7 +188,7 @@
         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):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to