diff options
author | iximeow <me@iximeow.net> | 2021-05-16 19:00:03 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-05-16 19:00:03 -0700 |
commit | beff8d0f33bc4152422c175ff720fdba0dc021da (patch) | |
tree | 4a46885df4c9d3e0e6c1ac41cca68c02d33ad7d6 /src/long_mode/display.rs | |
parent | e483a562a84204e4e1dd2543e080e9f879a89d82 (diff) |
fix ShowContextual rendering error with stale data and operands, publish 0.2.20.2.2
Diffstat (limited to 'src/long_mode/display.rs')
-rw-r--r-- | src/long_mode/display.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 => { |