From: Matthew Fernandez Date: Sat, 24 Apr 2021 04:36:20 +0000 (-0700) Subject: replace has_position boolean with a C99 bool X-Git-Tag: 2.47.2~13^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8b9df867b2508dcc2cec37ea3fc691d8ec2c64b;p=graphviz replace has_position boolean with a C99 bool --- diff --git a/lib/sparse/DotIO.c b/lib/sparse/DotIO.c index eb6ef575e..23b6fca93 100644 --- a/lib/sparse/DotIO.c +++ b/lib/sparse/DotIO.c @@ -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;