| ... | @@ -1430,7 +1430,7 @@ void bigint_shr(BigInt *dest, const BigInt *op1, const BigInt *op2) { | ... | @@ -1430,7 +1430,7 @@ void bigint_shr(BigInt *dest, const BigInt *op1, const BigInt *op2) { |
| 1430 | uint64_t digit = op1_digits[op_digit_index]; | 1430 | uint64_t digit = op1_digits[op_digit_index]; |
| 1431 | size_t dest_digit_index = op_digit_index - digit_shift_count; | 1431 | size_t dest_digit_index = op_digit_index - digit_shift_count; |
| 1432 | digits[dest_digit_index] = carry | (digit >> leftover_shift_count); | 1432 | digits[dest_digit_index] = carry | (digit >> leftover_shift_count); |
| 1433 | carry = digit << (64 - leftover_shift_count); | 1433 | carry = (leftover_shift_count != 0) ? (digit << (64 - leftover_shift_count)) : 0; |
| 1434 | | 1434 | |
| 1435 | if (dest_digit_index == 0) { break; } | 1435 | if (dest_digit_index == 0) { break; } |
| 1436 | op_digit_index -= 1; | 1436 | op_digit_index -= 1; |