Skip to content

Commit c1afa4c

Browse files
author
iamqk
authored
PPCAssembler: Fix incorrect cast sign of branch distance calculate (#555)
1 parent dd538d4 commit c1afa4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cemu/PPCAssembler/ppcAssembler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,7 @@ bool _ppcAssembler_isConstantBranchTargetExpr(std::string& expressionString, sin
21262126
{
21272127
return false;
21282128
}
2129-
relativeAddr = (uint32)branchDistance;
2129+
relativeAddr = (sint32)branchDistance;
21302130
return true;
21312131
}
21322132
return false;

0 commit comments

Comments
 (0)