]> granicus.if.org Git - graphviz/commitdiff
replace first boolean with a C99 bool
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Apr 2021 04:35:25 +0000 (21:35 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 May 2021 00:03:36 +0000 (17:03 -0700)
lib/sparse/DotIO.c

index 94b7592508f2d47a8b976e29945df6e8c3debf8f..eb6ef575e59fdcf4a660c1c59dd16d2315e7ac4b 100644 (file)
@@ -699,8 +699,9 @@ SparseMatrix Import_coord_clusters_from_dot(Agraph_t* g, int maxcluster, int dim
   char scluster[100];
   float ff;
 
-  int MAX_GRPS, MIN_GRPS, first = TRUE;
+  int MAX_GRPS, MIN_GRPS;
   bool noclusterinfo = false;
+  bool first = true;
   float *pal;
   int max_color = MAX_COLOR;
 
@@ -821,7 +822,7 @@ SparseMatrix Import_coord_clusters_from_dot(Agraph_t* g, int maxcluster, int dim
         nc = MAX(nc, ic);
         if (first){
          MIN_GRPS = ic;
-         first = FALSE;
+         first = false;
         } else {
          MIN_GRPS = MIN(MIN_GRPS, ic);
         }