updates mapmerge (#21898)

This commit is contained in:
Contrabang
2023-08-05 03:04:16 -04:00
committed by GitHub
parent 413c41058a
commit 899f259ef4
+1 -1
View File
@@ -95,7 +95,7 @@ class DMM:
# last-second handling of bogus keys to help prevent and fix broken maps
self._ensure_free_keys(0)
max_key = max_key_for(self.key_length)
bad_keys = {key: 0 for key in self.dictionary.keys() if key > max_key}
bad_keys = {key: 0 for key in self.dictionary.keys() if key >= max_key}
if bad_keys:
print(f"Warning: fixing {len(bad_keys)} overflowing keys")
for k in bad_keys: