abacus: bignum: fix do_halve
This commit is contained in:
parent
a99f60dcd4
commit
1521d2b232
|
@ -41,6 +41,8 @@ digits_type do_halve(digits_type num) {
|
|||
*i += carry;
|
||||
if (was_odd) {
|
||||
carry = BASE / 2;
|
||||
} else {
|
||||
carry = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue