]> granicus.if.org Git - graphviz/commitdiff
remove comparison against boolean literals in conc.c
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 8 Nov 2020 23:03:57 +0000 (15:03 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 15 Nov 2020 00:35:41 +0000 (16:35 -0800)
lib/dotgen/conc.c

index f6aa256ecebe8c7e5e32089951372deca5f7dc72..c0734afb6f68ed89fb22502170656e34e61812e5 100644 (file)
@@ -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)