Fixed messed-up assert condition

This commit is contained in:
flobernd 2017-10-19 22:19:20 +02:00
parent 2431b8f623
commit dd4c793885
1 changed files with 1 additions and 1 deletions

View File

@ -1674,7 +1674,7 @@ static ZydisStatus ZydisDecodeOperands(ZydisDecoderContext* context,
const ZydisOperandDefinition* operand;
instruction->operandCount = ZydisGetOperandDefinitions(definition, &operand);
ZYDIS_ASSERT(instruction->operandCount < ZYDIS_ARRAY_SIZE(instruction->operands));
ZYDIS_ASSERT(instruction->operandCount <= ZYDIS_ARRAY_SIZE(instruction->operands));
for (uint8_t i = 0; i < instruction->operandCount; ++i)
{