Fix uint256_to_decimal

This commit is contained in:
pscott
2021-06-08 10:25:15 +02:00
parent 59b5b6a304
commit 268ce5d9dd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ bool uint256_to_decimal(const uint8_t *value, size_t value_len, char *out, size_
uint16_t n[16] = {0};
// Copy and right-align the number
memcpy((uint8_t *) n + INT256_LENGTH - value_len, value, INT256_LENGTH - value_len);
memcpy((uint8_t *) n + INT256_LENGTH - value_len, value, value_len);
// Special case when value is 0
if (allzeroes(n, INT256_LENGTH)) {