forked from AbleOS/holey-bytes
a
This commit is contained in:
parent
86df8ddc64
commit
ed3bcba42e
|
@ -154,7 +154,7 @@ impl Memory {
|
|||
2 => 1024_usize.pow(3),
|
||||
_ => unreachable!(),
|
||||
},
|
||||
offset: addr as usize & ((1 << 12) - 1),
|
||||
offset: addr as usize & ((1 << (lvl * 9 + 12)) - 1),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue