]> granicus.if.org Git - graphviz/commitdiff
squash a -Wfloat-conversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 15 Oct 2020 03:06:22 +0000 (20:06 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 22 Oct 2020 00:08:43 +0000 (17:08 -0700)
lib/neatogen/stress.c

index 8d840e8952cdda56763bd310e95d1cfe4c2101cb..adf6e2fca9b5c95cc89d9177c115c3cc47f2f5fd 100644 (file)
@@ -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];
            }
        }