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

mwh at codespeak.net mwh at codespeak.net
Fri Mar 9 12:39:04 CET 2007


Author: mwh
Date: Fri Mar  9 12:39:02 2007
New Revision: 40107

Modified:
   pypy/dist/pypy/objspace/std/objspace.py
Log:
another int ** int :(


Modified: pypy/dist/pypy/objspace/std/objspace.py
==============================================================================
--- pypy/dist/pypy/objspace/std/objspace.py	(original)
+++ pypy/dist/pypy/objspace/std/objspace.py	Fri Mar  9 12:39:02 2007
@@ -299,7 +299,7 @@
         ec = ObjSpace.createexecutioncontext(self)
         ec._py_repr = self.newdict()
         if self.config.objspace.std.withmethodcache:
-            SIZE = 2 ** self.config.objspace.std.methodcachesizeexp
+            SIZE = 1 << self.config.objspace.std.methodcachesizeexp
             ec.method_cache_versions = [None] * SIZE
             ec.method_cache_names = [None] * SIZE
             ec.method_cache_lookup_where = [(None, None)] * SIZE



More information about the Pypy-commit mailing list