fix(big): correct large divisor handling in Div

This commit is contained in:
fallenoak 2023-02-06 22:15:20 -06:00
parent 847352659f
commit 181ef114e4
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
2 changed files with 34 additions and 1 deletions

View file

@ -59,7 +59,8 @@ void Div(BigBuffer& a, BigBuffer& b, const BigBuffer& c, const BigBuffer& d, Big
auto dCount = d.Count();
if (dCount > cCount) {
SetZero(b = c);
b = c;
SetZero(a);
return;
}