]> granicus.if.org Git - graphviz/commitdiff
dotgen flat_limits: fix truncation to int during intermediate calculations
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 18 Aug 2022 02:52:55 +0000 (19:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 23 Aug 2022 04:38:16 +0000 (21:38 -0700)
Like the prior commits, the problem fixed in this commit seems to have been a
mistake in ebd6191b0eec6e23d96c92aaa06212de339207e3 in not updating these
variables to doubles when transitioning to double-based points. Squashes 3
-Wfloat-conversion warnings.

lib/dotgen/flat.c

index 0f8588a525d1d50a21d6c29d920ebb6a75e9dc34..afcf8f412cd706dd5926cba3a3bb2dfe03fbdbfd 100644 (file)
@@ -132,7 +132,8 @@ static int flat_limits(graph_t * g, edge_t * e)
 static void 
 flat_node(edge_t * e)
 {
-    int r, place, ypos, h2;
+    int r, place;
+    double ypos, h2;
     graph_t *g;
     node_t *n, *vn;
     edge_t *ve;