From c1afa4cad0e6092325ae796f9b0c9ed9a686be0f Mon Sep 17 00:00:00 2001 From: iamqk Date: Mon, 5 Dec 2022 20:52:02 +0800 Subject: [PATCH] PPCAssembler: Fix incorrect cast sign of branch distance calculate (#555) --- src/Cemu/PPCAssembler/ppcAssembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cemu/PPCAssembler/ppcAssembler.cpp b/src/Cemu/PPCAssembler/ppcAssembler.cpp index 1e209fbc..5bab7b8b 100644 --- a/src/Cemu/PPCAssembler/ppcAssembler.cpp +++ b/src/Cemu/PPCAssembler/ppcAssembler.cpp @@ -2126,7 +2126,7 @@ bool _ppcAssembler_isConstantBranchTargetExpr(std::string& expressionString, sin { return false; } - relativeAddr = (uint32)branchDistance; + relativeAddr = (sint32)branchDistance; return true; } return false;