[pypy-svn] r15875 - pypy/dist/pypy/objspace/std

tismer at codespeak.net tismer at codespeak.net
Wed Aug 10 00:11:45 CEST 2005


Author: tismer
Date: Wed Aug 10 00:11:44 2005
New Revision: 15875

Modified:
   pypy/dist/pypy/objspace/std/longobject.py
Log:
for the moment, fix longobject's SHIFT to be 15,
in order not to break marshal.
Later, think to make marshal pretend this.


Modified: pypy/dist/pypy/objspace/std/longobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/longobject.py	(original)
+++ pypy/dist/pypy/objspace/std/longobject.py	Wed Aug 10 00:11:44 2005
@@ -55,6 +55,11 @@
 # Probably the primitive types will outperform this.
 
 SHIFT = (LONG_BIT // 2) - 1
+
+# XXX
+# SHIFT cannot be anything but 15 at the moment, or we break marshal
+SHIFT = 15
+
 MASK = int((1 << SHIFT) - 1)
 
 



More information about the Pypy-commit mailing list