From 9474e471408573cd7062513d50ff6613c1b3737b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 8 Nov 2020 15:03:57 -0800 Subject: [PATCH] remove comparison against boolean literals in conc.c --- lib/dotgen/conc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dotgen/conc.c b/lib/dotgen/conc.c index f6aa256ec..c0734afb6 100644 --- a/lib/dotgen/conc.c +++ b/lib/dotgen/conc.c @@ -213,12 +213,12 @@ void dot_concentrate(graph_t * g) for (r = 1; GD_rank(g)[r + 1].n; r++) { for (leftpos = 0; leftpos < GD_rank(g)[r].n; leftpos++) { left = GD_rank(g)[r].v[leftpos]; - if (downcandidate(left) == FALSE) + if (!downcandidate(left)) continue; for (rightpos = leftpos + 1; rightpos < GD_rank(g)[r].n; rightpos++) { right = GD_rank(g)[r].v[rightpos]; - if (bothdowncandidates(left, right) == FALSE) + if (!bothdowncandidates(left, right)) break; } if (rightpos - leftpos > 1) @@ -229,12 +229,12 @@ void dot_concentrate(graph_t * g) while (r > 0) { for (leftpos = 0; leftpos < GD_rank(g)[r].n; leftpos++) { left = GD_rank(g)[r].v[leftpos]; - if (upcandidate(left) == FALSE) + if (!upcandidate(left)) continue; for (rightpos = leftpos + 1; rightpos < GD_rank(g)[r].n; rightpos++) { right = GD_rank(g)[r].v[rightpos]; - if (bothupcandidates(left, right) == FALSE) + if (!bothupcandidates(left, right)) break; } if (rightpos - leftpos > 1) -- 2.40.0