From: Matthew Fernandez Date: Mon, 10 Jan 2022 00:49:14 +0000 (-0800) Subject: is_nonconstraint: return a C99 bool instead of an ambiguous int X-Git-Tag: 3.0.0~79^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4b17e206096aa608863f9292d3bd8b53210ac25;p=graphviz is_nonconstraint: return a C99 bool instead of an ambiguous int --- diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index 8f9a14416..053ced962 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -630,15 +630,15 @@ static int rankset_kind(graph_t * g) return NORANK; } -static int is_nonconstraint(edge_t * e) +static bool is_nonconstraint(edge_t * e) { char *constr; if (E_constr && (constr = agxget(e, E_constr))) { if (constr[0] && !mapbool(constr)) - return TRUE; + return true; } - return FALSE; + return false; } static node_t *find(node_t * n)