From 2426038f311e5509f8f53b3e6d10f1d01af773da Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Fri, 15 Feb 2019 15:35:04 +0100 Subject: [PATCH] Multiply signed integer instead of left shift (#1382) --- arch/TMS320C64x/TMS320C64xDisassembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/TMS320C64x/TMS320C64xDisassembler.c b/arch/TMS320C64x/TMS320C64xDisassembler.c index 6f4f2a88..34c3ef90 100644 --- a/arch/TMS320C64x/TMS320C64xDisassembler.c +++ b/arch/TMS320C64x/TMS320C64xDisassembler.c @@ -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; }