From 5c95710ce3798602445caac631cddb5893a2fba5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 15 Sep 2021 21:19:23 -0700 Subject: [PATCH] dist_data: replace a boolean with a C99 bool --- lib/neatogen/stress.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/neatogen/stress.c b/lib/neatogen/stress.c index 1a13145c3..e33602016 100644 --- a/lib/neatogen/stress.c +++ b/lib/neatogen/stress.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -48,7 +49,7 @@ typedef struct { int nedges; int *edges; DistType *edist; - boolean free_mem; + bool free_mem; } dist_data; static double compute_stressf(float **coords, float *lap, int dim, int n, int exp) @@ -433,7 +434,7 @@ static int sparse_stress_subspace_majorization_kD(vtx_data * graph, /* Input gra distances[i].edist = N_GNEW(n - 1, DistType); distances[i].nedges = n - 1; nedges += n - 1; - distances[i].free_mem = TRUE; + distances[i].free_mem = true; index = CenterIndex[i]; for (j = 0; j < i; j++) { distances[i].edges[j] = j; @@ -477,9 +478,9 @@ static int sparse_stress_subspace_majorization_kD(vtx_data * graph, /* Input gra available_space = (dist_bound + 1) * n; storage1 = N_GNEW(available_space, int); storage2 = N_GNEW(available_space, DistType); - distances[i].free_mem = TRUE; + distances[i].free_mem = true; } else { - distances[i].free_mem = FALSE; + distances[i].free_mem = false; } distances[i].edges = storage1; distances[i].edist = storage2; -- 2.40.0