From bb473f11adc57dd9dfd0ff74062cbfd3b1b10f3e Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 9 Jul 2023 15:08:04 -0700 Subject: that doesnt need to be a transmute --- src/long_mode/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index fa7d1b7..def3d55 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -7018,7 +7018,7 @@ fn read_operands< } if !operand_code.has_read_E() { - instruction.operands = unsafe { core::mem::transmute(0x00_00_00_01) }; + instruction.operands = [OperandSpec::RegRRR, OperandSpec::Nothing, OperandSpec::Nothing, OperandSpec::Nothing]; } instruction.operand_count = 2; -- cgit v1.1