[pypy-svn] r24862 - pypy/branch/pypy-rdict-refactoring/rpython
arigo at codespeak.net
arigo at codespeak.net
Thu Mar 23 09:36:42 CET 2006
Author: arigo
Date: Thu Mar 23 09:36:31 2006
New Revision: 24862
Modified:
pypy/branch/pypy-rdict-refactoring/rpython/rdict.py
Log:
Found the bug in the dict code, detected by test_stress.
Modified: pypy/branch/pypy-rdict-refactoring/rpython/rdict.py
==============================================================================
--- pypy/branch/pypy-rdict-refactoring/rpython/rdict.py (original)
+++ pypy/branch/pypy-rdict-refactoring/rpython/rdict.py Thu Mar 23 09:36:31 2006
@@ -573,6 +573,7 @@
while entry.everused():
i = ((i << 2) + i + perturb + 1) & mask
entry = entries[i]
+ perturb >>= PERTURB_SHIFT
return entry
# ____________________________________________________________
More information about the Pypy-commit
mailing list