From e9f758f4a5c09d33f3da207911dcfd42a8183a4c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 17 Aug 2022 19:38:58 -0700 Subject: [PATCH] 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. --- lib/dotgen/dotsplines.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1