| ... | @@ -1425,7 +1425,7 @@ void bigint_shr(BigInt *dest, const BigInt *op1, const BigInt *op2) { | ... | @@ -1425,7 +1425,7 @@ void bigint_shr(BigInt *dest, const BigInt *op1, const BigInt *op2) { |
| 1425 | uint64_t digit = op1_digits[op_digit_index]; | 1425 | uint64_t digit = op1_digits[op_digit_index]; |
| 1426 | size_t dest_digit_index = op_digit_index - digit_shift_count; | 1426 | size_t dest_digit_index = op_digit_index - digit_shift_count; |
| 1427 | dest->data.digits[dest_digit_index] = carry | (digit >> leftover_shift_count); | 1427 | dest->data.digits[dest_digit_index] = carry | (digit >> leftover_shift_count); |
| 1428 | carry = digit << leftover_shift_count; | 1428 | carry = digit << (64 - leftover_shift_count); |
| 1429 | | 1429 | |
| 1430 | if (dest_digit_index == 0) { break; } | 1430 | if (dest_digit_index == 0) { break; } |
| 1431 | op_digit_index -= 1; | 1431 | op_digit_index -= 1; |