From 1be45e48d4ca64650da5754035dbb1e1e53f8827 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 26 Dec 2021 19:04:12 -0800 Subject: [PATCH] stress_majorization_cola: use a C99 for 'converged' instead of a boolean --- lib/neatogen/constrained_majorization_ipsep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/neatogen/constrained_majorization_ipsep.c b/lib/neatogen/constrained_majorization_ipsep.c index 3c05ee476..d52e9af6a 100644 --- a/lib/neatogen/constrained_majorization_ipsep.c +++ b/lib/neatogen/constrained_majorization_ipsep.c @@ -94,7 +94,7 @@ int stress_majorization_cola(vtx_data * graph, /* Input graph in sparse represen int step; float val; double old_stress, new_stress = 0; - boolean converged; + bool converged; int len; double nsizeScale = 0; float maxEdgeLen = 0; @@ -287,7 +287,7 @@ int stress_majorization_cola(vtx_data * graph, /* Input graph in sparse represen lap1 = N_GNEW(lap_length, float); - for (converged = FALSE, iterations = 0; + for (converged = false, iterations = 0; iterations < maxi && !converged; iterations++) { /* First, construct Laplacian of 1/(d_ij*|p_i-p_j|) */ @@ -393,7 +393,7 @@ int stress_majorization_cola(vtx_data * graph, /* Input graph in sparse represen fprintf(stderr, "nsizescale=%f,iterations=%d\n", nsizeScale, iterations); iterations = 0; - converged = FALSE; + converged = false; } -- 2.40.0