[pypy-svn] r27450 - pypy/dist/pypy/rpython/lltypesystem
arigo at codespeak.net
arigo at codespeak.net
Fri May 19 11:38:16 CEST 2006
Author: arigo
Date: Fri May 19 11:38:15 2006
New Revision: 27450
Modified:
pypy/dist/pypy/rpython/lltypesystem/lltype.py
Log:
Python 2.5 compatibility.
Modified: pypy/dist/pypy/rpython/lltypesystem/lltype.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/lltype.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/lltype.py Fri May 19 11:38:15 2006
@@ -1035,7 +1035,7 @@
if isinstance(obj, int):
return obj # special case for cast_int_to_ptr() results
obj = top_container(obj)
- result = id(obj)
+ result = intmask(id(obj))
# assume that id() returns an addressish value which is
# not zero and aligned to at least a multiple of 4
assert result != 0 and (result & 3) == 0
More information about the Pypy-commit
mailing list