This commit is contained in:
Erin 2023-06-11 15:42:53 +02:00 committed by ondra05
parent 86df8ddc64
commit ed3bcba42e

View file

@ -154,7 +154,7 @@ impl Memory {
2 => 1024_usize.pow(3), 2 => 1024_usize.pow(3),
_ => unreachable!(), _ => unreachable!(),
}, },
offset: addr as usize & ((1 << 12) - 1), offset: addr as usize & ((1 << (lvl * 9 + 12)) - 1),
}) })
} }
} }