mirror of
https://github.com/urbit/ares.git
synced 2024-11-22 15:08:54 +03:00
[ares][hamt] shift off 5 bits per level on insert, not 1
This commit is contained in:
parent
17ca8e43ad
commit
ec3a17af9c
@ -242,7 +242,7 @@ impl<T: Copy> Hamt<T> {
|
||||
// get the mug chunk for the noun at *the next level* so
|
||||
// we can build a fake stem for it
|
||||
let fake_mug = mug_u32(stack, (*leaf.buffer).0);
|
||||
let fake_chunk = (fake_mug >> (depth + 1)) & 0x1F;
|
||||
let fake_chunk = (fake_mug >> ((depth + 1) * 5)) & 0x1F;
|
||||
let next_stem = Stem {
|
||||
bitmap: chunk_to_bit(fake_chunk),
|
||||
typemap: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user