From: Matthew Fernandez Date: Thu, 18 Aug 2022 02:38:58 +0000 (-0700) Subject: dotgen make_flat_adj_edges: fix truncation to int during intermediate calculations X-Git-Tag: 6.0.1~33^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9f758f4a5c09d33f3da207911dcfd42a8183a4c;p=graphviz dotgen make_flat_adj_edges: 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 4 -Wfloat-conversion warnings. --- diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index a8f6027ec..77f829760 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -1279,7 +1279,8 @@ make_flat_adj_edges(graph_t* g, edge_t** edges, int ind, int cnt, edge_t* e0, graph_t* subg; node_t *auxt, *auxh; edge_t* auxe; - int i, j, midx, midy, leftx, rightx; + int i, j; + double midx, midy, leftx, rightx; pointf del; edge_t* hvye = NULL; attr_state_t* attrs;