From beff8d0f33bc4152422c175ff720fdba0dc021da Mon Sep 17 00:00:00 2001 From: iximeow <me@iximeow.net> Date: Sun, 16 May 2021 19:00:03 -0700 Subject: fix ShowContextual rendering error with stale data and operands, publish 0.2.2 --- src/long_mode/display.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index 1d68719..f84ff7a 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -2820,7 +2820,8 @@ impl <T: fmt::Write, Y: YaxColors> ShowContextual<u64, [Option<alloc::string::St x.colorize(colors, out)?; } }; - for i in 1..4 { + for i in 1..self.operand_count { + let i = i as usize; match self.opcode { Opcode::MOVSX_b | Opcode::MOVZX_b => { -- cgit v1.1