Skip to content

Commit

Permalink
style: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Z4karia authored Jan 22, 2024
1 parent 914eab4 commit 74c7081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handle_provide_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ static void hex_addition(uint8_t a[INT256_LENGTH], const uint8_t b[INT256_LENGTH
uint16_t carry = 0;
for (int i = INT256_LENGTH - 1; i >= 0; i--) {
uint16_t sum = a[i] + b[i] + carry;
a[i] = (uint8_t)(sum & 0xFF); // Keep only the lower 8 bits
carry = (sum > 0xFF) ? 1 : 0; // Update carry for the next iteration
a[i] = (uint8_t) (sum & 0xFF); // Keep only the lower 8 bits
carry = (sum > 0xFF) ? 1 : 0; // Update carry for the next iteration
}
}

Expand Down

0 comments on commit 74c7081

Please sign in to comment.