From 98c7e224fed2607106151b82043895a26cc470ad Mon Sep 17 00:00:00 2001 From: joevt Date: Sat, 14 Dec 2024 02:07:22 -0800 Subject: [PATCH] ppcmacros: Make rot_sh unsigned. --- cpu/ppc/ppcmacros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/ppc/ppcmacros.h b/cpu/ppc/ppcmacros.h index 5464a26..dcecbc2 100644 --- a/cpu/ppc/ppcmacros.h +++ b/cpu/ppc/ppcmacros.h @@ -109,14 +109,14 @@ along with this program. If not, see . #define ppc_grab_regssash(opcode) \ int reg_s = (opcode >> 21) & 31; \ int reg_a = (opcode >> 16) & 31; \ - int rot_sh = (opcode >> 11) & 31; \ + unsigned rot_sh = (opcode >> 11) & 31; \ uint32_t ppc_result_d = ppc_state.gpr[reg_s]; \ uint32_t ppc_result_a = ppc_state.gpr[reg_a]; #define ppc_grab_regssash_stswi(opcode) \ int reg_s = (opcode >> 21) & 31; \ int reg_a = (opcode >> 16) & 31; \ - int rot_sh = (opcode >> 11) & 31; \ + unsigned rot_sh = (opcode >> 11) & 31; \ uint32_t ppc_result_a = ppc_state.gpr[reg_a]; #define ppc_grab_regssb(opcode) \