From 5fc3cd165f2fae9925324f5e312be7cf75271e8e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 23 Apr 2021 21:31:59 -0700 Subject: [PATCH] replace boolean first with a C99 bool --- lib/sparse/DotIO.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/sparse/DotIO.c b/lib/sparse/DotIO.c index 85d446f8c..c07f6a1fd 100644 --- a/lib/sparse/DotIO.c +++ b/lib/sparse/DotIO.c @@ -18,6 +18,7 @@ #include #include #include +#include #include typedef struct { @@ -490,7 +491,7 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int if (with_color){ real maxdist = 0.; real mindist = 0.; - int first = TRUE; + bool first = true; color = malloc(sizeof(real)*A->nz); for (n = agfstnode (g); n; n = agnxtnode (g, n)) { i = ND_id(n); @@ -500,7 +501,7 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int if (i != ja[j]){ if (first){ mindist = color[j]; - first = FALSE; + first = false; } else { mindist = MIN(mindist, color[j]); } @@ -513,7 +514,7 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int if (i != ja[j]){ if (first){ mindist = color[j]; - first = FALSE; + first = false; } else { mindist = MIN(mindist, color[j]); } -- 2.40.0