]> granicus.if.org Git - graphviz/commitdiff
constrained_majorization_gradient_projection: [nfc] boolean → C99 bool
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 15:35:05 +0000 (07:35 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 15:36:09 +0000 (07:36 -0800)
lib/neatogen/quad_prog_solve.c

index 1e80e4fd45ee78d35c28ede33431b32cfc065286..800e2e89f4847d85452977d62a9a5c803926f2ac 100644 (file)
@@ -411,7 +411,7 @@ int constrained_majorization_gradient_projection(CMajEnv * e,
     int *ordering = e->ordering;
     int *levels = e->levels;
     int num_levels = e->num_levels;
-    boolean converged = FALSE;
+    bool converged = false;
     float *g = e->fArray1;
     float *old_place = e->fArray2;
     float *d = e->fArray4;
@@ -438,7 +438,7 @@ int constrained_majorization_gradient_projection(CMajEnv * e,
     for (counter = 0; counter < max_iterations && !converged; counter++) {
        float alpha;
        float numerator = 0, denominator = 0, r;
-       converged = TRUE;
+       converged = true;
        /* find steepest descent direction */
        for (i = 0; i < e->n; i++) {
            old_place[i] = place[i];
@@ -554,7 +554,7 @@ int constrained_majorization_gradient_projection(CMajEnv * e,
        prev_stress = stress;
 #endif
        if (test > quad_prog_tol) {
-           converged = FALSE;
+           converged = false;
        }
     }
 #ifdef CONMAJ_LOGGING