[pypy-svn] pypy jitypes2: Found the problem and fixed it.

arigo commits-noreply at bitbucket.org
Wed Dec 22 17:25:46 CET 2010


Author: Armin Rigo <arigo at tunes.org>
Branch: jitypes2
Changeset: r40188:a41da1785096
Date: 2010-12-22 17:25 +0100
http://bitbucket.org/pypy/pypy/changeset/a41da1785096/

Log:	Found the problem and fixed it.

diff --git a/pypy/rlib/test/test_libffi.py b/pypy/rlib/test/test_libffi.py
--- a/pypy/rlib/test/test_libffi.py
+++ b/pypy/rlib/test/test_libffi.py
@@ -314,9 +314,14 @@
         libfoo = self.get_libfoo()
         func = (libfoo, 'sum_xy_longlong', [types.slonglong, types.slonglong],
                 types.slonglong)
-        x = r_longlong(maxint32+1)
-        y = r_longlong(maxint32+2)
-        zero = longlong2float(r_longlong(0))
+        if IS_32_BIT:
+            x = r_longlong(maxint32+1)
+            y = r_longlong(maxint32+2)
+            zero = longlong2float(r_longlong(0))
+        else:
+            x = maxint32+1
+            y = maxint32+2
+            zero = 0
         res = self.call(func, [x, y], rffi.LONGLONG, init_result=zero)
         if IS_32_BIT:
             # obscure, on 32bit it's really a long long, so it returns a


More information about the Pypy-commit mailing list