From: Matthew Fernandez Date: Sat, 28 Jan 2023 16:22:47 +0000 (-0800) Subject: mm2gv makeDotGraph: use a C99 bool for 'first' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51c2b38a6dc3e6a79660070d6a6de7476b6f32e8;p=graphviz mm2gv makeDotGraph: use a C99 bool for 'first' --- diff --git a/cmd/tools/mm2gv.c b/cmd/tools/mm2gv.c index c452f8c2c..5c57d1b47 100644 --- a/cmd/tools/mm2gv.c +++ b/cmd/tools/mm2gv.c @@ -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]); }