Optimize chunk loading

This commit is contained in:
Thinkofname 2016-04-04 12:37:21 +01:00
parent da40508291
commit 5f6e41f700
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ impl Map {
}
pub fn from_raw(bits: Vec<u64>, size: usize) -> Map {
Map {
length: (bits.len()*64 + 63) / size,
length: (bits.len()*64 + (size-1)) / size,
bit_size: size,
bits: bits,
}