Fix missing enumerate() in btree.py

This commit is contained in:
Sam Fuller 2021-04-09 18:15:46 -07:00
parent e2cc5b1280
commit 46cae1e8cf
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ def make_btree(records, bthKeyLen, blksize):
# Populate the bitmap (1 = used)
headnode.records[2] = bitmanip.bits(2048, len(nodelist))
for i, mnode in mapnodes:
for i, mnode in enumerate(mapnodes):
nset = len(nodelist) - 2048 - i*3952
mnode.records = [bitmanip.bits(3952, nset)]