[pypy-commit] pypy reflex-support: fix rtyper error

wlav noreply at buildbot.pypy.org
Wed Jul 13 18:08:14 CEST 2011


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r45566:b44c747fd5a6
Date: 2011-07-13 09:07 -0700
http://bitbucket.org/pypy/pypy/changeset/b44c747fd5a6/

Log:	fix rtyper error

diff --git a/pypy/module/cppyy/converter.py b/pypy/module/cppyy/converter.py
--- a/pypy/module/cppyy/converter.py
+++ b/pypy/module/cppyy/converter.py
@@ -357,7 +357,8 @@
         return rffi.cast(rffi.VOIDP, x)
 
     def convert_argument_libffi(self, space, w_obj, argchain):
-        argchain.arg_singlefloat(self._unwrap_object(space, w_obj))
+        # it's required to sent an rffi.DOUBLE not r_singlefloat
+        argchain.arg_singlefloat(space.float_w(w_obj))
 
     def from_memory(self, space, w_obj, offset):
         address = self._get_raw_address(space, w_obj, offset)


More information about the pypy-commit mailing list