]> granicus.if.org Git - graphviz/commitdiff
fixLabelOrder: use a C99 bool for 'haveBackedge' local instead of an int
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 17 Sep 2021 01:14:32 +0000 (18:14 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 20 Sep 2021 00:25:37 +0000 (17:25 -0700)
lib/dotgen/mincross.c

index 3c7201d1bd3d3e0527ed5e155b2ed4bf1718d627..dde5e645b247625af7659c983487a03b0003579d 100644 (file)
@@ -234,7 +234,8 @@ getComp (graph_t* g, node_t* n, graph_t* comp, int* indices)
 static void
 fixLabelOrder (graph_t* g, rank_t* rk)
 {
-    int cnt, haveBackedge = FALSE;
+    int cnt;
+    bool haveBackedge = false;
     Agnode_t** arr;
     int* indices;
     Agraph_t* sg;
@@ -246,7 +247,7 @@ fixLabelOrder (graph_t* g, rank_t* rk)
        v = nxtp = agnxtnode(g, n);
        for (; v; v = agnxtnode(g, v)) {
            if (ND_hi(v) <= ND_lo(n)) { 
-               haveBackedge = TRUE;
+               haveBackedge = true;
                agedge(g, v, n, NULL, 1);
            }
            else if (ND_hi(n) <= ND_lo(v)) {