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

index eb6ef575e59fdcf4a660c1c59dd16d2315e7ac4b..23b6fca934a04fd88c256747f422ab0b5ae5e424 100644 (file)
@@ -937,13 +937,13 @@ SparseMatrix Import_coord_clusters_from_dot(Agraph_t* g, int maxcluster, int dim
 
 
   if (x){
-    int has_position = FALSE;
+    bool has_position = false;
     *x = MALLOC(sizeof(real)*dim*nnodes);
     for (n = agfstnode (g); n; n = agnxtnode (g, n)) {
       real xx,yy;
       i = ND_id(n);
       if (agget(n, "pos")){
-        has_position = TRUE;
+        has_position = true;
        sscanf(agget(n, "pos"), "%lf,%lf", &xx, &yy);
        (*x)[i*dim] = xx;
        (*x)[i*dim+1] = yy;