Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
1 addition
and
1 deletion.
-
+1
−1
topaz/mapdict.py
|
@@ -49,7 +49,7 @@ def update_storage_size(self, w_obj, node): |
|
|
self._size_estimate = size_est |
|
|
if node.length() > self.length(): |
|
|
# note that node.size_estimate() is always at least node.length() |
|
|
new_storage = [None] * node.size_estimate() |
|
|
new_storage = [None] * max(node.size_estimate(), len(w_obj.storage) if w_obj.storage else 0) |
|
|
if w_obj.storage: |
|
|
new_storage[:len(w_obj.storage)] = w_obj.storage |
|
|
w_obj.storage = new_storage |
|
|