aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-07-01 23:58:41 -0700
committeriximeow <me@iximeow.net>2021-07-01 23:58:41 -0700
commitee9df27a910f10695df15332bd973fb5bfe422e2 (patch)
tree39c2c365136fef9937c4d23c93bb4a0dc3424f80 /src
parent03c70fa8062869bc82ae41e6b81998a1b8c70732 (diff)
fix warnings
Diffstat (limited to 'src')
-rw-r--r--src/long_mode/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs
index 65b1a35..861160a 100644
--- a/src/long_mode/mod.rs
+++ b/src/long_mode/mod.rs
@@ -7163,9 +7163,9 @@ fn read_operands<T: Reader<<Arch as yaxpeax_arch::Arch>::Address, <Arch as yaxpe
let operand_code = OperandCodeBuilder::from_bits(operand_code as u16);
if operand_code.is_only_modrm_operands() {
- let mut modrm = 0;
- let mut opwidth = 0;
- let mut mem_oper = OperandSpec::Nothing;
+ let modrm;
+ let opwidth;
+ let mem_oper;
let mut bank = RegisterBank::Q;
// cool! we can precompute opwidth and know we need to read_E.
if !operand_code.has_byte_operands() {