From 1c0742495e345948474842f8e7bc26dec15ea537 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 18 Dec 2021 08:33:47 -0800 Subject: [PATCH] IMDS_given_dim: [nfc] use a C99 bool instead of boolean --- lib/neatogen/smart_ini_x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.40.0