[pypy-svn] pypy fast-forward: Fix the "long double" test on linux 64bit

amauryfa commits-noreply at bitbucket.org
Mon Dec 27 01:38:37 CET 2010


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40237:87d0a8f2e211
Date: 2010-12-27 01:42 +0100
http://bitbucket.org/pypy/pypy/changeset/87d0a8f2e211/

Log:	Fix the "long double" test on linux 64bit (it worked on win32)

diff --git a/pypy/module/_rawffi/interp_rawffi.py b/pypy/module/_rawffi/interp_rawffi.py
--- a/pypy/module/_rawffi/interp_rawffi.py
+++ b/pypy/module/_rawffi/interp_rawffi.py
@@ -316,11 +316,14 @@
         else:
             ptr = unwrap_truncate_int(rffi.VOIDP, space, w_arg)
         push_func(add_arg, argdesc, ptr)
-    elif letter == "d" or letter == "g":
+    elif letter == "d":
         push_func(add_arg, argdesc, space.float_w(w_arg))
     elif letter == "f":
         push_func(add_arg, argdesc, rffi.cast(rffi.FLOAT,
                                               space.float_w(w_arg)))
+    elif letter == "g":
+        push_func(add_arg, argdesc, rffi.cast(rffi.LONGDOUBLE,
+                                              space.float_w(w_arg)))
     elif letter == "c":
         s = space.str_w(w_arg)
         if len(s) != 1:


More information about the Pypy-commit mailing list