From 333e8589bed624135105dbc16380635b85938687 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 10 Jan 2022 20:56:57 -0800 Subject: [PATCH] setbounds: use C99 bools for locals 'onleft', 'onright' --- lib/dotgen/flat.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/dotgen/flat.c b/lib/dotgen/flat.c index fc62495e3..0f8588a52 100644 --- a/lib/dotgen/flat.c +++ b/lib/dotgen/flat.c @@ -10,7 +10,7 @@ #include - +#include static node_t *make_vn_slot(graph_t * g, int r, int pos) { @@ -75,21 +75,21 @@ static void setbounds(node_t * v, int *bounds, int lpos, int rpos) bounds[SRB] = ord; } } else { /* forward */ - boolean onleft, onright; - onleft = onright = FALSE; + bool onleft, onright; + onleft = onright = false; for (i = 0; (f = ND_out(v).list[i]); i++) { if (ND_order(aghead(f)) <= lpos) { - onleft = TRUE; + onleft = true; continue; } if (ND_order(aghead(f)) >= rpos) { - onright = TRUE; + onright = true; continue; } } - if (onleft && (onright == FALSE)) + if (onleft && !onright) bounds[HLB] = ord + 1; - if (onright && (onleft == FALSE)) + if (onright && !onleft) bounds[HRB] = ord - 1; } } -- 2.40.0