aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-07-02 00:01:23 -0700
committeriximeow <me@iximeow.net>2021-07-02 00:01:23 -0700
commit714f6cfc5ae07d1c6836d72edf85147c985a3c93 (patch)
tree58dc338e1f5a2b3389d717e3d602f7f2f118c3e0 /src
parentee9df27a910f10695df15332bd973fb5bfe422e2 (diff)
`Nothing` operand code must be decoded with operand_count=0
Diffstat (limited to 'src')
-rw-r--r--src/protected_mode/vex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protected_mode/vex.rs b/src/protected_mode/vex.rs
index 235d160..7c55ef1 100644
--- a/src/protected_mode/vex.rs
+++ b/src/protected_mode/vex.rs
@@ -440,7 +440,7 @@ fn read_vex_operands<T: Reader<<Arch as yaxpeax_arch::Arch>::Address, <Arch as y
Ok(())
}
VEXOperandCode::Nothing => {
- instruction.mem_size = 1;
+ instruction.operand_count = 0;
Ok(())
},
VEXOperandCode::Ev_G_xmm_imm8 => {