Author: Antonio Cuni <[email protected]>
Branch: refactor-call_release_gil
Changeset: r63198:4d0e47f211ed
Date: 2013-04-10 14:03 +0200
http://bitbucket.org/pypy/pypy/changeset/4d0e47f211ed/

Log:    fix for float vs longlong on 32bit

diff --git a/rpython/jit/metainterp/blackhole.py 
b/rpython/jit/metainterp/blackhole.py
--- a/rpython/jit/metainterp/blackhole.py
+++ b/rpython/jit/metainterp/blackhole.py
@@ -1360,6 +1360,7 @@
 
     @arguments("cpu", "i", "i", "f")
     def bhimpl_libffi_save_result_float(self, cif_description, 
exchange_buffer, result):
+        result = longlong.getrealfloat(result)
         ARRAY = lltype.Ptr(rffi.CArray(lltype.Float))
         cif_description = self.cast_int_to_ptr(cif_description, 
CIF_DESCRIPTION_P)
         exchange_buffer = self.cast_int_to_ptr(exchange_buffer, rffi.CCHARP)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to