From 940f41f593b3b7db213e492cb921f765750a76cb Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 20 May 2018 14:06:54 -0400 Subject: [PATCH] Interpreter_LoadStore: Remove unnecessary cast in lhzx() This is only moving a smaller unsigned integral type into a larger unsigned integral type, so there's no loss of information that could occur. --- Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp index 901d9feb00..33c8ff4ca6 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_LoadStore.cpp @@ -673,7 +673,7 @@ void Interpreter::lhzux(UGeckoInstruction inst) void Interpreter::lhzx(UGeckoInstruction inst) { - const u32 temp = (u32)PowerPC::Read_U16(Helper_Get_EA_X(inst)); + const u32 temp = PowerPC::Read_U16(Helper_Get_EA_X(inst)); if (!(PowerPC::ppcState.Exceptions & EXCEPTION_DSI)) {