]> granicus.if.org Git - graphviz/commitdiff
mm2gv makeDotGraph: use a C99 bool for 'first'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 28 Jan 2023 16:22:47 +0000 (08:22 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 30 Jan 2023 15:43:10 +0000 (07:43 -0800)
cmd/tools/mm2gv.c

index c452f8c2c8ba832928c4bfc547a99fb6f9e56a22..5c57d1b470252ca976b20e4cb921234b09854460 100644 (file)
@@ -133,7 +133,7 @@ static Agraph_t *makeDotGraph(SparseMatrix A, char *name, int dim,
     if (with_color) {
        double maxdist = 0.;
        double mindist = 0.;
-       int first = TRUE;
+       bool first = true;
 
        sym2 = agattr(g, AGEDGE, "color", "");
        sym3 = agattr(g, AGEDGE, "wt", "");
@@ -147,7 +147,7 @@ static Agraph_t *makeDotGraph(SparseMatrix A, char *name, int dim,
                    if (i != ja[j]) {
                        if (first) {
                            mindist = color[j];
-                           first = FALSE;
+                           first = false;
                        } else {
                            mindist = fmin(mindist, color[j]);
                        }
@@ -161,7 +161,7 @@ static Agraph_t *makeDotGraph(SparseMatrix A, char *name, int dim,
                    if (i != ja[j]) {
                        if (first) {
                            mindist = color[j];
-                           first = FALSE;
+                           first = false;
                        } else {
                            mindist = fmin(mindist, color[j]);
                        }