Initializes to 0 X86 immediateOffset (#1192)
diff --git a/arch/X86/X86DisassemblerDecoder.h b/arch/X86/X86DisassemblerDecoder.h
index 8b3e5ba..9099711 100644
--- a/arch/X86/X86DisassemblerDecoder.h
+++ b/arch/X86/X86DisassemblerDecoder.h
@@ -610,6 +610,11 @@
/* The value of the vector extension prefix(EVEX/VEX/XOP), if present */
uint8_t vectorExtensionPrefix[4];
+ /* Offsets from the start of the instruction to the pieces of data, which is
+ needed to find relocation entries for adding symbolic operands */
+ uint8_t displacementOffset;
+ uint8_t immediateOffset;
+
// end-of-zero-members
/* Reader interface (C) */
@@ -651,11 +656,6 @@
uint8_t immSize; // immediate size for X86_OP_IMM operand
- /* Offsets from the start of the instruction to the pieces of data, which is
- needed to find relocation entries for adding symbolic operands */
- uint8_t displacementOffset;
- uint8_t immediateOffset;
-
/* opcode state */
/* The last byte of the opcode, not counting any ModR/M extension */