Fixed formatting of sign-extended immediate operands
@@ -468,11 +468,8 @@ static ZydisStatus ZydisFormatterPrintImmediateIntel(ZydisInstructionFormatter*
return ZYDIS_STATUS_INVALID_PARAMETER;
}
}
- switch (operand->size)
+ switch (info->operandSize)
{
- case 8:
- return ZydisStringBufferAppendFormat(buffer, bufferLen,
- ZYDIS_STRBUF_APPEND_MODE_DEFAULT, "0x%02"PRIX8, operand->imm.value.ubyte);
case 16:
return ZydisStringBufferAppendFormat(buffer, bufferLen,
ZYDIS_STRBUF_APPEND_MODE_DEFAULT, "0x%02"PRIX16, operand->imm.value.uword);
