From: Matthew Fernandez Date: Sat, 18 Dec 2021 16:33:47 +0000 (-0800) Subject: IMDS_given_dim: [nfc] use a C99 bool instead of boolean X-Git-Tag: 3.0.0~122^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c0742495e345948474842f8e7bc26dec15ea537;p=graphviz IMDS_given_dim: [nfc] use a C99 bool instead of boolean --- diff --git a/lib/neatogen/smart_ini_x.c b/lib/neatogen/smart_ini_x.c index 16cff6387..9f120e0e0 100644 --- a/lib/neatogen/smart_ini_x.c +++ b/lib/neatogen/smart_ini_x.c @@ -263,7 +263,7 @@ int IMDS_given_dim(vtx_data* graph, int n, double* given_coords, double pos_i; double* balance = N_GNEW(n, double); double b; - boolean converged; + bool converged; Dij = compute_apsp(graph, n); @@ -343,12 +343,12 @@ int IMDS_given_dim(vtx_data* graph, int n, double* given_coords, } } - for (converged=FALSE,iterations2=0; iterations2<200 && !converged; iterations2++) { + for (converged=false,iterations2=0; iterations2<200 && !converged; iterations2++) { if (conjugate_gradient_f(lap, y, balance, n, conj_tol, n, true) < 0) { rv = 1; goto cleanup; } - converged=TRUE; + converged = true; for (i=0; i1e-5)) { - converged=FALSE; + converged = false; balance[i]=b; } }