Commits

Armin Rigo committed 6411cbf

Minor fix

Comments (0)

Files changed (1)

rpython/rtyper/lltypesystem/rdict.py

 
     entries = dic.entries
 
-    i = dic.num_used_items - 1
     while True:
+        i = dic.num_used_items - 1
         if entries.valid(i):
             break
-        i -= 1
+        dic.num_used_items -= 1
 
     key = entries[i].key
     index = dic.lookup_function(dic, key, entries.hash(i),