From 515afd9a6b66cd26db46c9e44c45ca783e50b5e7 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 22 Dec 2022 18:50:57 -0800 Subject: [PATCH] common new_queue: squash -Wsign-conversion warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit `sz` is known ≥ 2 here. --- lib/common/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/utils.c b/lib/common/utils.c index e670633a0..e6d1d479a 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -33,7 +33,7 @@ nodequeue *new_queue(int sz) if (sz <= 1) sz = 2; - q->head = q->tail = q->store = gv_calloc(sz, sizeof(node_t*)); + q->head = q->tail = q->store = gv_calloc((size_t)sz, sizeof(node_t*)); q->limit = q->store + sz; return q; } -- 2.50.1