abacus: bignum: fix do_halve

This commit is contained in:
Bruno BELANYI 2021-08-23 19:10:48 +02:00
parent a99f60dcd4
commit 1521d2b232
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ digits_type do_halve(digits_type num) {
*i += carry;
if (was_odd) {
carry = BASE / 2;
} else {
carry = 0;
}
}