]> granicus.if.org Git - graphviz/commitdiff
constrained_majorization_new_with_gaps: [nfc] boolean → C99 bool
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 15:37:24 +0000 (07:37 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 17 Dec 2021 01:17:24 +0000 (17:17 -0800)
lib/neatogen/quad_prog_solve.c

index f869dae3d707b8d66043a303a8400d101bd451b7..2617ee19c43bc22c23548b175070945e15a6f98a 100644 (file)
@@ -580,7 +580,7 @@ constrained_majorization_new_with_gaps(CMajEnv * e, float *b,
     int *levels = e->levels;
     int num_levels = e->num_levels;
     float new_place_i;
-    boolean converged = FALSE;
+    bool converged = false;
     float upper_bound, lower_bound;
     int node;
     int left, right;
@@ -640,7 +640,7 @@ constrained_majorization_new_with_gaps(CMajEnv * e, float *b,
     gap = e->fArray4;
 
     for (counter = 0; counter < max_iterations && !converged; counter++) {
-       converged = TRUE;
+       converged = true;
        lower_bound = -1e9;     /* no lower bound for first level */
        for (left = 0; left < n; left = right) {
            int best_i;