From 34876bb124451da67b51d23af1d69d5b6c8c8aac Mon Sep 17 00:00:00 2001 From: tqfx Date: Sun, 31 Mar 2024 08:21:56 +0800 Subject: [PATCH] fix bugprone-multi-level-implicit-pointer-conversio --- src/que.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/que.c b/src/que.c index 2c7ba84..76b6405 100644 --- a/src/que.c +++ b/src/que.c @@ -34,7 +34,7 @@ static int a_que_die_(a_que *ctx, a_list *node) if (ctx->mem_ <= ctx->cur_) { a_size const mem = ctx->mem_ + (ctx->mem_ >> 1) + 1; - a_list **const ptr = (a_list **)a_alloc(ctx->ptr_, sizeof(void *) * mem); + a_list **const ptr = (a_list **)a_alloc((void *)ctx->ptr_, sizeof(void *) * mem); if (a_unlikely(!ptr)) { return A_FAILURE; } ctx->ptr_ = ptr; ctx->mem_ = mem; @@ -97,7 +97,7 @@ void a_que_dtor(a_que *ctx, void (*dtor)(void *)) a_alloc(node, 0); } } - a_alloc(ctx->ptr_, 0); + a_alloc((void *)ctx->ptr_, 0); ctx->ptr_ = A_NULL; ctx->siz_ = 0; ctx->mem_ = 0; -- 2.11.4.GIT