From 3b11777b671e77e3567e9ec6bc2eb076fb5c18be Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 14 Oct 2020 20:06:22 -0700 Subject: [PATCH] squash a -Wfloat-conversion warning --- lib/neatogen/stress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neatogen/stress.c b/lib/neatogen/stress.c index 8d840e895..adf6e2fca 100644 --- a/lib/neatogen/stress.c +++ b/lib/neatogen/stress.c @@ -543,7 +543,7 @@ static int sparse_stress_subspace_majorization_kD(vtx_data * graph, /* Input gra } else { for (j = 1; j < lap[i].nedges; j++) { edges[j] = distances[i].edges[j - 1]; - ewgts[j] = -1.0 / (float) dist_list[j]; + ewgts[j] = -1.0f / (float) dist_list[j]; degree -= ewgts[j]; } } -- 2.40.0