mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-21 09:04:19 +01:00
Merge 'Fix program counter update in sequence test op' from Preston Thorpe
it's not emitted anywhere yet but still saw this bug Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #3297
This commit is contained in:
@@ -5390,9 +5390,11 @@ pub fn op_sequence_test(
|
||||
insn
|
||||
);
|
||||
let cursor = state.get_cursor(*cursor_id).as_sorter_mut();
|
||||
if cursor.seq_beginning() {
|
||||
state.pc = target_pc.as_offset_int();
|
||||
}
|
||||
state.pc = if cursor.seq_beginning() {
|
||||
target_pc.as_offset_int()
|
||||
} else {
|
||||
state.pc + 1
|
||||
};
|
||||
Ok(InsnFunctionStepResult::Step)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user