Skip to content

Commit

Permalink
Fix DivRem bug (#72115)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakersnar authored Jul 22, 2022
1 parent 885207f commit bca7f94
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,11 @@ public static void DivRem(ref BigInteger lhs, ref BigInteger rhs, out BigInteger
{
remLength--;
}
else
{
// As soon as we find a non-zero block, the rest of remainder is significant
break;
}
}

rem._length = remLength;
Expand Down

0 comments on commit bca7f94

Please sign in to comment.