proper fix

This commit is contained in:
Miroslav Stampar
2011-08-01 23:48:38 +00:00
parent ad4584da70
commit 457f501bbd
2 changed files with 2 additions and 2 deletions

View File

@@ -254,7 +254,7 @@ class BigArray(list):
index = y / BIGARRAY_CHUNK_LENGTH
offset = y % BIGARRAY_CHUNK_LENGTH
chunk = self.chunks[index]
if isinstance(chunk, list) and len(chunk) >= offset:
if isinstance(chunk, list):
return chunk[offset]
else:
self._checkcache(index)