mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
fix(big): correct large divisor handling in Div
This commit is contained in:
parent
847352659f
commit
181ef114e4
2 changed files with 34 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue