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:
@@ -243,10 +243,10 @@ uint8_t *getNftContractAddress(const ethQueryContractUI_t *const msg) {
|
||||
: msg->pluginSharedRO->txContent->destination);
|
||||
}
|
||||
|
||||
bool adjustDecimals(char *src,
|
||||
uint32_t srcLength,
|
||||
bool adjustDecimals(const char *src,
|
||||
size_t srcLength,
|
||||
char *target,
|
||||
uint32_t targetLength,
|
||||
size_t targetLength,
|
||||
uint8_t decimals) {
|
||||
uint32_t startOffset;
|
||||
uint32_t lastZeroOffset = 0;
|
||||
|
||||
@@ -61,10 +61,10 @@ void getEthDisplayableAddress(uint8_t *in,
|
||||
|
||||
uint8_t *getNftContractAddress(const ethQueryContractUI_t *const msg);
|
||||
|
||||
bool adjustDecimals(char *src,
|
||||
uint32_t srcLength,
|
||||
bool adjustDecimals(const char *src,
|
||||
size_t srcLength,
|
||||
char *target,
|
||||
uint32_t targetLength,
|
||||
size_t targetLength,
|
||||
uint8_t decimals);
|
||||
|
||||
static __attribute__((no_instrument_function)) inline int allzeroes(void *buf, size_t n) {
|
||||
|
||||
Reference in New Issue
Block a user