From 51c2b38a6dc3e6a79660070d6a6de7476b6f32e8 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 28 Jan 2023 08:22:47 -0800 Subject: [PATCH] mm2gv makeDotGraph: use a C99 bool for 'first' --- cmd/tools/mm2gv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]); } -- 2.40.0