abacus: bignum: fix do_halve

This commit is contained in:
Bruno BELANYI 2021-08-23 19:10:48 +02:00
parent a99f60dcd4
commit 1521d2b232

View file

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