ARM: Fix warning

This commit is contained in:
Vicki Pfau 2023-08-10 11:58:05 -07:00
parent 6a317779c8
commit f96ba8c1aa
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ uint32_t ARMResolveMemoryAccess(struct ARMInstructionInfo* info, struct ARMRegis
if (info->memory.format & ARM_MEMORY_IMMEDIATE_OFFSET) {
offset = info->memory.offset.immediate;
} else if (info->memory.format & ARM_MEMORY_REGISTER_OFFSET) {
offset = info->memory.offset.reg == ARM_PC ? pc : regs->gprs[info->memory.offset.reg];
offset = info->memory.offset.reg == ARM_PC ? pc : (uint32_t) regs->gprs[info->memory.offset.reg];
}
if (info->memory.format & ARM_MEMORY_SHIFTED_OFFSET) {
uint8_t shiftSize = info->memory.offset.shifterImm;