From: Matthew Fernandez Date: Sat, 24 Apr 2021 04:31:59 +0000 (-0700) Subject: replace boolean first with a C99 bool X-Git-Tag: 2.47.2~13^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fc3cd165f2fae9925324f5e312be7cf75271e8e;p=graphviz replace boolean first with a C99 bool --- 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]); }