From: Magnus Jacobsson Date: Fri, 28 Aug 2020 07:40:55 +0000 (+0200) Subject: Remove 1 -Wconversion warning in markFn X-Git-Tag: 2.46.0~20^2^2~93^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b70ef608d798049a6f808777f75b2f01b47336a;p=graphviz Remove 1 -Wconversion warning in markFn It's safe to cast to char since the value is always 0 or 1. --- diff --git a/lib/pack/ccomps.c b/lib/pack/ccomps.c index fdc0279ec..cb9fecf25 100644 --- a/lib/pack/ccomps.c +++ b/lib/pack/ccomps.c @@ -156,7 +156,7 @@ static int markFn (Agnode_t* n, int v) int ret; if (v < 0) return ND_mark(n); ret = ND_mark(n); - ND_mark(n) = v; + ND_mark(n) = (char) v; return ret; }