Multiply signed integer instead of left shift (#1382)

This commit is contained in:
Catena cyber 2019-02-15 15:35:04 +01:00 committed by Nguyen Anh Quynh
parent b57ddf8bc5
commit 2426038f31
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ static DecodeStatus DecodePCRelScst21(MCInst *Inst, unsigned Val,
imm |= ~((1 << 21) - 1);
/* Address is relative to the address of the first instruction in the fetch packet */
MCOperand_CreateImm0(Inst, (Address & ~31) + (imm << 2));
MCOperand_CreateImm0(Inst, (Address & ~31) + (imm * 4));
return MCDisassembler_Success;
}