From: Matthew Fernandez Date: Wed, 15 Dec 2021 15:34:16 +0000 (-0800) Subject: constrained_majorization_new: [nfc] use a C99 bool instead of a boolean X-Git-Tag: 3.0.0~124^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1aeb84b8419b2e8b8bb76a5b30a34e39505031f3;p=graphviz constrained_majorization_new: [nfc] use a C99 bool instead of a boolean --- diff --git a/lib/neatogen/quad_prog_solve.c b/lib/neatogen/quad_prog_solve.c index 731d2d64c..1e80e4fd4 100644 --- a/lib/neatogen/quad_prog_solve.c +++ b/lib/neatogen/quad_prog_solve.c @@ -11,6 +11,7 @@ #include #ifdef DIGCOLA #include +#include #include #include #include @@ -118,7 +119,7 @@ constrained_majorization_new(CMajEnv * e, float *b, float **coords, int num_levels = e->num_levels; int i, j; float new_place_i; - boolean converged = FALSE; + bool converged = false; float upper_bound, lower_bound; int node; int left, right; @@ -179,7 +180,7 @@ constrained_majorization_new(CMajEnv * e, float *b, float **coords, } 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;