From 1aeb84b8419b2e8b8bb76a5b30a34e39505031f3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 15 Dec 2021 07:34:16 -0800 Subject: [PATCH] constrained_majorization_new: [nfc] use a C99 bool instead of a boolean --- lib/neatogen/quad_prog_solve.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.40.0