From ed5c24c281fa0730e71b9490119c910cc6ac04cb Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 15 Apr 2022 11:17:22 +0200 Subject: [PATCH] arm64 build fix --- core/hw/sh4/dyna/shil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hw/sh4/dyna/shil.h b/core/hw/sh4/dyna/shil.h index 6cfa32f13..6e5aaabf5 100644 --- a/core/hw/sh4/dyna/shil.h +++ b/core/hw/sh4/dyna/shil.h @@ -112,7 +112,7 @@ struct shil_param bool is_r32() const { return is_r32i() || is_r32f(); } bool is_r64() const { return is_r64f(); } //just here for symmetry ... - bool is_imm_s8() const { return is_imm() && (s8)_imm == (s32)_imm; } + bool is_imm_s8() const { return is_imm() && (int8_t)_imm == (int32_t)_imm; } u32* reg_ptr() const { verify(is_reg()); return GetRegPtr(_reg); } s32 reg_nofs() const { verify(is_reg()); return (s32)((u8*)GetRegPtr(_reg) - (u8*)GetRegPtr(reg_xf_0)-sizeof(Sh4cntx)); }