[pypy-svn] r16475 - pypy/dist/pypy/rpython/memory

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Aug 25 13:47:13 CEST 2005


Author: cfbolz
Date: Thu Aug 25 13:47:12 2005
New Revision: 16475

Modified:
   pypy/dist/pypy/rpython/memory/lladdress.py
Log:
fixed tests on 64 bit machines. this is not entirely perfect since I would like to put all the usage of struct into lltypelayout. On the other hand this is difficult becauseof circular imports (they can't be done locally because it's about globals)

Modified: pypy/dist/pypy/rpython/memory/lladdress.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/lladdress.py	(original)
+++ pypy/dist/pypy/rpython/memory/lladdress.py	Thu Aug 25 13:47:12 2005
@@ -61,14 +61,14 @@
                             self.convert_to(value))
            
 class _signed_accessor(_accessor):
-    format = "i"
-    size = struct.calcsize("i")
+    format = "l"
+    size = struct.calcsize("l")
     convert_from = int
     convert_to = int
 
 class _unsigned_accessor(_accessor):
-    format = "I"
-    size = struct.calcsize("I")
+    format = "L"
+    size = struct.calcsize("L")
     convert_from = r_uint
     convert_to = long
 



More information about the Pypy-commit mailing list