From efdcd826ee1be354b76f25e43516f03a073243a8 Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 11 Jun 2023 13:55:05 +0200 Subject: [PATCH] fixed typo --- hbvm/src/vm/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbvm/src/vm/mem/mod.rs b/hbvm/src/vm/mem/mod.rs index 3b91add..88e82ca 100644 --- a/hbvm/src/vm/mem/mod.rs +++ b/hbvm/src/vm/mem/mod.rs @@ -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),