From: Matthew Fernandez Date: Fri, 23 Dec 2022 02:50:57 +0000 (-0800) Subject: common new_queue: squash -Wsign-conversion warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=515afd9a6b66cd26db46c9e44c45ca783e50b5e7;p=graphviz common new_queue: squash -Wsign-conversion warning `sz` is known ≥ 2 here. --- 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; }