Skip to content
Permalink
Browse files

Fixed #603 -- corrected a crash

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 12, 2013
1 parent 32267d2 commit 3c47cad9c16a6db9b983c0b5b895d2a40c4b9239
Showing with 1 addition and 1 deletion.
  1. +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

0 comments on commit 3c47cad

Please sign in to comment.