mirror of
https://github.com/elliotnunn/machfs.git
synced 2025-02-20 03:28:57 +00:00
Fix missing enumerate() in btree.py
This commit is contained in:
parent
e2cc5b1280
commit
b44a2f9cd3
@ -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)]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user