Change type of output length in amountToString

Defining out_buffer_size as uint8_t triggers warnings with static
analysers when sizeof() is used on the output buffer.

There is no reason to use uint8_t here.
This commit is contained in:
Jean-Baptiste Bédrune
2022-02-04 17:52:52 +01:00
parent 89fddf3ef8
commit ed4e10628a
4 changed files with 8 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ void amountToString(const uint8_t *amount,
uint8_t decimals,
const char *ticker,
char *out_buffer,
uint8_t out_buffer_size) {
size_t out_buffer_size) {
char tmp_buffer[100] = {0};
if (uint256_to_decimal(amount, amount_size, tmp_buffer, sizeof(tmp_buffer)) == false) {