fixed typo

This commit is contained in:
Erin 2023-06-11 13:55:05 +02:00 committed by ondra05
parent c873945681
commit efdcd826ee

View file

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