From d6a217ca8673f2ef529b707833b05ad6c835bb08 Mon Sep 17 00:00:00 2001
From: zilmar <zilmar@pj64-emu.com>
Date: Mon, 1 Aug 2022 10:03:06 +0930
Subject: [PATCH] Core: fix issue with R4300iOp::SPECIAL_SRA

---
 Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp b/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp
index f82f5b599..2d67acb0a 100644
--- a/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp
+++ b/Source/Project64-core/N64System/Interpreter/InterpreterOps.cpp
@@ -1292,7 +1292,7 @@ void R4300iOp::SPECIAL_SRL()
 
 void R4300iOp::SPECIAL_SRA()
 {
-    _GPR[m_Opcode.rd].DW = (_GPR[m_Opcode.rt].W[0] >> m_Opcode.sa);
+    _GPR[m_Opcode.rd].DW = (int32_t)(_GPR[m_Opcode.rt].DW >> m_Opcode.sa);
 }
 
 void R4300iOp::SPECIAL_SLLV()