PPCAssembler: Fix incorrect cast sign of branch distance calculate (#555)

This commit is contained in:
iamqk 2022-12-05 20:52:02 +08:00 committed by GitHub
parent dd538d477c
commit c1afa4cad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2126,7 +2126,7 @@ bool _ppcAssembler_isConstantBranchTargetExpr(std::string& expressionString, sin
{
return false;
}
relativeAddr = (uint32)branchDistance;
relativeAddr = (sint32)branchDistance;
return true;
}
return false;