Remove dead code + expand allzeroes usage to bigger integers

This commit is contained in:
TamtamHero
2021-05-06 23:16:46 +02:00
committed by pscott
parent 02ec83233b
commit 82bf81cca6
3 changed files with 3 additions and 57 deletions

View File

@@ -79,7 +79,7 @@ bool uint256_to_decimal(const uint8_t *value, char *out, size_t out_len) {
n[i] = __builtin_bswap16(*p++);
}
int pos = out_len;
while (!allzeroes(n, sizeof(n))) {
while (!allzeroes((uint8_t *)n, sizeof(n))) {
if (pos == 0) {
return false;
}