diff --git a/vm/src/vm.rs b/vm/src/vm.rs index cba3619..73956ec 100644 --- a/vm/src/vm.rs +++ b/vm/src/vm.rs @@ -217,11 +217,11 @@ pub enum Op */ // Set thread-local variable - // thread_set (val) + // thread_set (val) thread_set, // Get thread-local variable - // thread_get + // thread_get thread_get, // NOTE: may want to wait for this because it's not RISC, @@ -1443,7 +1443,7 @@ impl Thread } Op::thread_set => { - let idx = self.code.read_pc::(&mut pc) as usize; + let idx = self.code.read_pc::(&mut pc) as usize; let val = self.pop(); if idx >= self.locals.len() { @@ -1454,7 +1454,7 @@ impl Thread } Op::thread_get => { - let idx = self.code.read_pc::(&mut pc) as usize; + let idx = self.code.read_pc::(&mut pc) as usize; if idx >= self.locals.len() { self.push(Value::from(0));