[pypy-svn] pypy jitypes2: make the condition a bit clearer and more explicit

antocuni commits-noreply at bitbucket.org
Tue Dec 21 17:22:46 CET 2010


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: jitypes2
Changeset: r40166:4a34e0e14528
Date: 2010-12-21 14:10 +0100
http://bitbucket.org/pypy/pypy/changeset/4a34e0e14528/

Log:	make the condition a bit clearer and more explicit

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
@@ -306,7 +306,7 @@
         x = r_longlong(maxint32+1)
         y = r_longlong(maxint32+2)
         res = self.call(func, [x, y], rffi.LONGLONG, init_result=0)
-        if sys.maxint == maxint32:
+        if types.slonglong is not types.slong:
             # obscure, on 32bit it's really a long long, so it returns a
             # DOUBLE because of the JIT hack
             res = float2longlong(res)


More information about the Pypy-commit mailing list