From: Matthew Fernandez Date: Thu, 18 Aug 2022 02:52:55 +0000 (-0700) Subject: dotgen flat_limits: fix truncation to int during intermediate calculations X-Git-Tag: 6.0.1~33^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e44263de3b76b0b0435eb0e2e21d18022a87102;p=graphviz dotgen flat_limits: fix truncation to int during intermediate calculations 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. --- diff --git a/lib/dotgen/flat.c b/lib/dotgen/flat.c index 0f8588a52..afcf8f412 100644 --- a/lib/dotgen/flat.c +++ b/lib/dotgen/flat.c @@ -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;