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