Commits

Maciej Fijalkowski  committed 73c3796

small fixes

  • Participants
  • Parent commits fc93c63
  • Branches rdict-experiments

Comments (0)

Files changed (1)

File pypy/rlib/dict.py

         n = new_size
         self.indices = self._make_index(n)
         PERTURB_SHIFT = 5
-        for index, hashvalue in enumerate(self.hashlist):
+        for index in range(self.used):
+            hashvalue = self.values[index].key
             if hashvalue < 0:
                 perturb = -hashvalue
             else:
                 if self.filled * 3 > len(self.indices) * 2:
                     self._resize(4 * self.__len__())
         else:
-            self.valuelist[index] = value
+            self.values[index].value = value
 
     def __delitem__(self, key):
         hashvalue = hash(key)