Skip to content

Commit

Permalink
fixup! feat: add libdriver
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Dec 1, 2023
1 parent e26576c commit d2c9b18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions linux/libcmt/include/libcmt/rollup.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ cmt_rollup_emit_report(cmt_rollup_t *me
* - 0 success
* - -ENOBUFS no space left in @p me */
int
cmt_rollup_emit_report(cmt_rollup_t *me
,size_t n
,const void *data);
cmt_rollup_emit_exception(cmt_rollup_t *me
,size_t n
,const void *data);

/** read advance state
*
Expand Down
2 changes: 1 addition & 1 deletion linux/libcmt/src/merkle.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int cmt_merkle_push_back(cmt_merkle_t *me, uint8_t hash[CMT_KECCAK_LENGTH])
if (me->leaf_count == UINT64_MAX)
return -ENOBUFS;

unsigned n = ((uint64_t)ffsll(++me->leaf_count)-1u);
unsigned n = (uint64_t)ffsll(++me->leaf_count) - 1u;
for (unsigned i=0; i<n; ++i)
hash2(me->state[i], hash, hash);
memcpy(me->state[n], hash, CMT_KECCAK_LENGTH);
Expand Down

0 comments on commit d2c9b18

Please sign in to comment.