From: Matthew Fernandez Date: Sat, 19 Nov 2022 23:56:57 +0000 (-0800) Subject: neatogen: use a clearer type for 'doAll' X-Git-Tag: 7.0.3~1^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7aafef8ea7aaa68a35392dfeaf79fdfcd150f8b9;p=graphviz neatogen: use a clearer type for 'doAll' --- diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index 20a87d401..029b39882 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -50,7 +50,7 @@ static double incr = 0.05; /* Increase bounding box by adding static int iterations = -1; /* Number of iterations */ static int useIter = 0; /* Use specified number of iterations */ -static int doAll = 0; /* Move all nodes, regardless of overlap */ +static bool doAll = false; // Move all nodes, regardless of overlap static Site **sites; /* Array of pointers to sites; used in qsort */ static Site **endSite; /* Sentinel on sites array */ static Point nw, ne, sw, se; /* Corners of clipping window */ @@ -530,10 +530,10 @@ static int vAdjust(void) switch (badLevel) { case 0: - doAll = 1; + doAll = true; break; default: - doAll = 1; + doAll = true; increaseCnt++; increaseBoundBox(); break;