unchecked access of instruction pc

This commit is contained in:
Joel Wejdenstål 2022-10-30 22:18:43 +01:00
parent dc74c2081a
commit 5d130b5271
No known key found for this signature in database
GPG key ID: DF03CEFBB1A915AA

View file

@ -88,7 +88,7 @@ impl VM {
}
loop {
match &chunk.tape[frame.pc] {
match unsafe { chunk.tape.get_unchecked(frame.pc) } {
Instruction::LT(a, b, c) => {
*r_reg!(a) = reg!(b).op_lt(reg!(c))?;
},