Minor refactorings

This commit is contained in:
flobernd 2017-12-31 17:27:59 +01:00
parent 38c99667c4
commit 585fa7035a
No known key found for this signature in database
GPG Key ID: 9C3AE0ED4A969F10
2 changed files with 2 additions and 2 deletions

View File

@ -3494,7 +3494,7 @@ static void ZydisSetEffectiveAddressWidth(ZydisDecoderContext* context,
ZYDIS_ASSERT(context);
ZYDIS_ASSERT(instruction);
ZydisBool hasOverride = definition->acceptsAddressSizeOverride &&
const ZydisBool hasOverride = definition->acceptsAddressSizeOverride &&
(instruction->attributes & ZYDIS_ATTRIB_HAS_ADDRESSSIZE);
switch (context->decoder->addressWidth)

View File

@ -50,7 +50,7 @@ ZydisStatus ZydisCalcAbsoluteAddress(const ZydisDecodedInstruction* instruction,
}
if (operand->mem.base == ZYDIS_REGISTER_EIP)
{
*address = (ZydisU64)((ZydisU32)instruction->instrAddress + instruction->length +
*address = ((ZydisU32)instruction->instrAddress + instruction->length +
(ZydisU32)operand->mem.disp.value);
return ZYDIS_STATUS_SUCCESS;
}