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

index 800e2e89f4847d85452977d62a9a5c803926f2ac..f869dae3d707b8d66043a303a8400d101bd451b7 100644 (file)
@@ -482,9 +482,9 @@ int constrained_majorization_gradient_projection(CMajEnv * e,
                                                        e->lev[u]), w = 2;
                float avgPos = sum / w;
                float pos;
-               boolean finished;
+               bool finished;
                do {
-                   finished = TRUE;
+                   finished = true;
                    if (ui < endOfLevel) {
                        u = ordering[ui];
                        pos = place[u] - levels_gap * e->lev[u];
@@ -493,7 +493,7 @@ int constrained_majorization_gradient_projection(CMajEnv * e,
                            w++;
                            sum += pos;
                            avgPos = sum / w;
-                           finished = FALSE;
+                           finished = false;
                        }
                    }
 
@@ -505,7 +505,7 @@ int constrained_majorization_gradient_projection(CMajEnv * e,
                            w++;
                            sum += pos;
                            avgPos = sum / w;
-                           finished = FALSE;
+                           finished = false;
                        }
                    }
                } while (!finished);