forked from AbleOS/holey-bytes
fixed typo
This commit is contained in:
parent
c873945681
commit
efdcd826ee
|
@ -120,7 +120,7 @@ impl Memory {
|
||||||
size: match lvl {
|
size: match lvl {
|
||||||
0 => 4096,
|
0 => 4096,
|
||||||
1 => 1024_usize.pow(2) * 2,
|
1 => 1024_usize.pow(2) * 2,
|
||||||
2 => 4096_usize.pow(3),
|
2 => 1024_usize.pow(3),
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
},
|
},
|
||||||
offset: addr as usize & ((1 << 12) - 1),
|
offset: addr as usize & ((1 << 12) - 1),
|
||||||
|
|
Loading…
Reference in a new issue