This commit is contained in:
LDj3SNuD 2018-10-21 23:32:09 +02:00 committed by GitHub
commit 2f197cd40d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -443,7 +443,7 @@ namespace ChocolArm64.Instruction
float Result; float Result;
if (BiasedExp >= (uint)Math.Pow(2d, E) - 1) if (BiasedExp >= (uint)Math.Pow(2d, E) - 1u)
{ {
Result = OverflowToInf ? FPInfinity(Sign) : FPMaxNormal(Sign); Result = OverflowToInf ? FPInfinity(Sign) : FPMaxNormal(Sign);
@ -759,7 +759,7 @@ namespace ChocolArm64.Instruction
if (!State.GetFpcrFlag(FPCR.AHP)) if (!State.GetFpcrFlag(FPCR.AHP))
{ {
if (BiasedExp >= (uint)Math.Pow(2d, E) - 1) if (BiasedExp >= (uint)Math.Pow(2d, E) - 1u)
{ {
ResultBits = OverflowToInf ? FPInfinity(Sign) : FPMaxNormal(Sign); ResultBits = OverflowToInf ? FPInfinity(Sign) : FPMaxNormal(Sign);