[pypy-svn] r48049 - pypy/dist/pypy/lang/smalltalk

oscar at codespeak.net oscar at codespeak.net
Fri Oct 26 14:04:12 CEST 2007


Author: oscar
Date: Fri Oct 26 14:04:12 2007
New Revision: 48049

Modified:
   pypy/dist/pypy/lang/smalltalk/squeakimage.py
Log:
(cbolz, oscar) replaced 2**n by 1<<n


Modified: pypy/dist/pypy/lang/smalltalk/squeakimage.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/squeakimage.py	(original)
+++ pypy/dist/pypy/lang/smalltalk/squeakimage.py	Fri Oct 26 14:04:12 2007
@@ -24,7 +24,7 @@
     sum = 0
     for length in lengths:
         sum += length
-        n = integer & (2**length - 1)
+        n = integer & ((1<<length) - 1)
         assert n >= 0
         result.append(n)
         integer = integer >> length



More information about the Pypy-commit mailing list