Skip to content

Commit

Permalink
Fix bigint converter memset (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Feb 21, 2020
1 parent 8cb88f3 commit 82818da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/crypto/kerl/converter.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void convert_trits_to_bytes(trit_t const *const trits, uint8_t *const bytes) {
uint32_t *base = (uint32_t *)bytes;
uint64_t v;

memset(base, 0, INT_LEN);
memset(base, 0, INT_LEN * sizeof(uint32_t));

for (i = 0; i < TRIT_LEN - 1; i++) {
if (trits[i] != -1) {
Expand Down

0 comments on commit 82818da

Please sign in to comment.