Initializes to 0 X86 immediateOffset (#1192)
diff --git a/arch/X86/X86DisassemblerDecoder.h b/arch/X86/X86DisassemblerDecoder.h
index 5953e3d..b543c23 100644
--- a/arch/X86/X86DisassemblerDecoder.h
+++ b/arch/X86/X86DisassemblerDecoder.h
@@ -605,6 +605,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) */
@@ -646,11 +651,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 */