From: Matthew Fernandez Date: Sat, 18 Dec 2021 16:32:30 +0000 (-0800) Subject: constrained_majorization_vpsc: [nfc] use a C99 bool instead of boolean X-Git-Tag: 3.0.0~122^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7739f04cc2fba61ebeb70c458608b0a8d33a818;p=graphviz constrained_majorization_vpsc: [nfc] use a C99 bool instead of boolean --- diff --git a/lib/neatogen/quad_prog_vpsc.c b/lib/neatogen/quad_prog_vpsc.c index fd2a7f022..f9fb1c733 100644 --- a/lib/neatogen/quad_prog_vpsc.c +++ b/lib/neatogen/quad_prog_vpsc.c @@ -23,6 +23,7 @@ **********************************************************/ #include +#include #ifdef IPSEPCOLA #include #include @@ -52,7 +53,7 @@ constrained_majorization_vpsc(CMajEnvVPSC * e, float *b, float *place, * dummy vars included in lap */ int n = e->nv + e->nldv; - boolean converged = FALSE; + bool converged = false; #ifdef CONMAJ_LOGGING static int call_no = 0; #endif /* CONMAJ_LOGGING */ @@ -93,7 +94,7 @@ constrained_majorization_vpsc(CMajEnvVPSC * e, float *b, float *place, float alpha, beta; float numerator = 0, denominator = 0, r; /* fprintf(stderr,"."); */ - converged = TRUE; + converged = true; /* find steepest descent direction */ for (i = 0; i < n; i++) { old_place[i] = place[i]; @@ -170,7 +171,7 @@ constrained_majorization_vpsc(CMajEnvVPSC * e, float *b, float *place, prev_stress = stress; #endif if (test > quad_prog_tol) { - converged = FALSE; + converged = false; } } #ifdef CONMAJ_LOGGING