Skip to content

Commit

Permalink
chore(tests): fix compilation warnings in the chain test
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Apr 26, 2024
1 parent 0a6d74e commit 41d835b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/chain.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ int main(int argc, char *argv[])
fprintf(stderr, "buffer allocate failed.\n");
return -1;
}
b->left_pos = b->pos = b->start = buf;
b->last = b->end = buf + 1024;
b->left_pos = b->pos = b->start = (mln_u8ptr_t)buf;
b->last = b->end = (mln_u8ptr_t)buf + 1024;
b->in_memory = 1;

buf[0] = 'H', buf[1] = 'i';
Expand Down

0 comments on commit 41d835b

Please sign in to comment.