[pypy-svn] r72961 - pypy/branch/asmgcc-64/pypy/rpython/memory/gctransform

arigo at codespeak.net arigo at codespeak.net
Sat Mar 27 17:41:38 CET 2010


Author: arigo
Date: Sat Mar 27 17:41:37 2010
New Revision: 72961

Modified:
   pypy/branch/asmgcc-64/pypy/rpython/memory/gctransform/asmgcroot.py
Log:
Cast the result to INT.


Modified: pypy/branch/asmgcc-64/pypy/rpython/memory/gctransform/asmgcroot.py
==============================================================================
--- pypy/branch/asmgcc-64/pypy/rpython/memory/gctransform/asmgcroot.py	(original)
+++ pypy/branch/asmgcc-64/pypy/rpython/memory/gctransform/asmgcroot.py	Sat Mar 27 17:41:37 2010
@@ -412,11 +412,11 @@
     key1 = addr1.address[0]
     key2 = addr2.address[0]
     if key1 < key2:
-        return -1
+        return rffi.cast(rffi.INT, -1)
     elif key1 == key2:
-        return 0
+        return rffi.cast(rffi.INT, 0)
     else:
-        return 1
+        return rffi.cast(rffi.INT, 1)
 
 # ____________________________________________________________
 



More information about the Pypy-commit mailing list