From: Matthew Fernandez Date: Sat, 20 Mar 2021 18:56:21 +0000 (-0700) Subject: use a stronger return type in has_no_predecessor_below X-Git-Tag: 2.47.1~24^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=354baddc8db27617aa2fe884e12857ccceb55a1a;p=graphviz use a stronger return type in has_no_predecessor_below --- diff --git a/lib/cgraph/write.c b/lib/cgraph/write.c index d7c64fa4e..d97ff1326 100644 --- a/lib/cgraph/write.c +++ b/lib/cgraph/write.c @@ -378,17 +378,17 @@ static bool has_no_edges(Agraph_t * g, Agnode_t * n) return agfstin(g, n) == NULL && agfstout(g, n) == NULL; } -static int has_no_predecessor_below(Agraph_t * g, Agnode_t * n, +static bool has_no_predecessor_below(Agraph_t * g, Agnode_t * n, uint64_t val) { Agedge_t *e; if (AGSEQ(n) < val) - return FALSE; + return false; for (e = agfstin(g, n); e; e = agnxtin(g, e)) if (AGSEQ(e->node) < val) - return FALSE; - return TRUE; + return false; + return true; } static int not_default_attrs(Agraph_t * g, Agnode_t * n)