Author: Wim Lavrijsen <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit