diff options
Diffstat (limited to 'src/stages')
-rw-r--r-- | src/stages/bytecode.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stages/bytecode.rs b/src/stages/bytecode.rs index 4b50327..3d43ef4 100644 --- a/src/stages/bytecode.rs +++ b/src/stages/bytecode.rs @@ -119,7 +119,7 @@ impl<'a> BytecodeGenerator<'a> { let Some(addr) = self.stack.pop() else { unreachable!("Uncaught unmatched block terminator"); }; - let [high, low] = (addr as u16).to_be_bytes(); + let [high, low] = (i as u16).to_be_bytes(); self.bytecode[addr] = high; self.bytecode[addr+1] = low; } |