]> granicus.if.org Git - graphviz/commitdiff
neatogen: use a clearer type for 'doAll'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 19 Nov 2022 23:56:57 +0000 (15:56 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 25 Nov 2022 18:30:51 +0000 (10:30 -0800)
lib/neatogen/adjust.c

index 20a87d40104f95390cfa4f21b937f5350ef7c9e9..029b3988278b7068290a63f23907608b59eafcb1 100644 (file)
@@ -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;