From 3de9b469c27c1eaf69c37412cd3938edcba9b6ef Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 16 Sep 2021 17:59:26 -0700 Subject: [PATCH] reorder: convert local booleans to C99 bools --- lib/dotgen/mincross.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dotgen/mincross.c b/lib/dotgen/mincross.c index 0f3c0f097..f59da5240 100644 --- a/lib/dotgen/mincross.c +++ b/lib/dotgen/mincross.c @@ -1553,7 +1553,6 @@ static void flat_reorder(graph_t * g) static void reorder(graph_t * g, int r, int reverse, int hasfixed) { int changed = 0, nelt; - boolean muststay, sawclust; node_t **vlist = GD_rank(g)[r].v; node_t **lp, **rp, **ep = vlist + GD_rank(g)[r].n; @@ -1566,18 +1565,19 @@ static void reorder(graph_t * g, int r, int reverse, int hasfixed) if (lp >= ep) break; /* find the node that can be compared */ - sawclust = muststay = FALSE; + bool sawclust = false; + bool muststay = false; for (rp = lp + 1; rp < ep; rp++) { if (sawclust && ND_clust(*rp)) continue; /* ### */ if (left2right(g, *lp, *rp)) { - muststay = TRUE; + muststay = true; break; } if (ND_mval(*rp) >= 0) break; if (ND_clust(*rp)) - sawclust = TRUE; /* ### */ + sawclust = true; /* ### */ } if (rp >= ep) break; -- 2.40.0