aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-05-16 19:00:03 -0700
committeriximeow <me@iximeow.net>2021-05-16 19:00:03 -0700
commitbeff8d0f33bc4152422c175ff720fdba0dc021da (patch)
tree4a46885df4c9d3e0e6c1ac41cca68c02d33ad7d6 /src
parente483a562a84204e4e1dd2543e080e9f879a89d82 (diff)
fix ShowContextual rendering error with stale data and operands, publish 0.2.20.2.2
Diffstat (limited to 'src')
-rw-r--r--src/long_mode/display.rs3
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 => {