From 41d835b94cfa0d65126f6ed866fc693d452ec371 Mon Sep 17 00:00:00 2001 From: Water-Melon Date: Fri, 26 Apr 2024 09:32:30 +0800 Subject: [PATCH] chore(tests): fix compilation warnings in the chain test --- t/chain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/chain.c b/t/chain.c index 40a5c5b..188829f 100644 --- a/t/chain.c +++ b/t/chain.c @@ -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';