[pypy-svn] r76929 - pypy/trunk/pypy/rpython/memory

arigo at codespeak.net arigo at codespeak.net
Wed Sep 8 09:54:01 CEST 2010


Author: arigo
Date: Wed Sep  8 09:53:57 2010
New Revision: 76929

Modified:
   pypy/trunk/pypy/rpython/memory/gctypelayout.py
Log:
Fix for r76920.  Oups, breaks tests a bit all over the place.


Modified: pypy/trunk/pypy/rpython/memory/gctypelayout.py
==============================================================================
--- pypy/trunk/pypy/rpython/memory/gctypelayout.py	(original)
+++ pypy/trunk/pypy/rpython/memory/gctypelayout.py	Wed Sep  8 09:53:57 2010
@@ -3,6 +3,7 @@
 from pypy.rpython.lltypesystem.lloperation import llop
 from pypy.rlib.objectmodel import we_are_translated
 from pypy.rlib.debug import ll_assert
+from pypy.rlib.rarithmetic import intmask
 from pypy.tool.identity_dict import identity_dict
 
 
@@ -122,8 +123,8 @@
 T_HAS_GCPTR_IN_VARSIZE = 0x20000
 T_IS_GCARRAY_OF_GCPTR  = 0x40000
 T_IS_WEAKREF           = 0x80000
-T_KEY_MASK          = 0xFF000000
-T_KEY_VALUE         = 0x7A000000    # bug detection only
+T_KEY_MASK             = intmask(0xFF000000)
+T_KEY_VALUE            = intmask(0x7A000000)    # bug detection only
 
 def _check_valid_type_info(p):
     ll_assert(p.infobits & T_KEY_MASK == T_KEY_VALUE, "invalid type_id")



More information about the Pypy-commit mailing list