[pypy-commit] pypy ffi-backend: Another similar fix on 32-bit.

arigo noreply at buildbot.pypy.org
Sat Jul 28 16:12:02 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: ffi-backend
Changeset: r56493:782ea30955c5
Date: 2012-07-28 16:10 +0200
http://bitbucket.org/pypy/pypy/changeset/782ea30955c5/

Log:	Another similar fix on 32-bit.

diff --git a/pypy/jit/backend/llgraph/llimpl.py b/pypy/jit/backend/llgraph/llimpl.py
--- a/pypy/jit/backend/llgraph/llimpl.py
+++ b/pypy/jit/backend/llgraph/llimpl.py
@@ -1520,7 +1520,7 @@
     ll_p = rffi.cast(rffi.CCHARP, struct)
     ll_p = rffi.cast(lltype.Ptr(TYPE), rffi.ptradd(ll_p, offset))
     value = ll_p[0]
-    return rffi.cast(lltype.Float, value)
+    return rffi.cast(longlong.FLOATSTORAGE, value)
 
 def do_raw_store_int(struct, offset, descrofs, value):
     TYPE = symbolic.Size2Type[descrofs]


More information about the pypy-commit mailing list