From 4a628ea17e706af62e0ccf80a3d1746c4afdfeb5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 7 Sep 2022 17:27:49 -0700 Subject: [PATCH] dotgen cl_vninside: use a more appropriate return type --- lib/dotgen/dotsplines.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index af66e76d4..34f2e418d 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -65,7 +65,7 @@ static void adjustregularpath(path *, int, int); static Agedge_t *bot_bound(Agedge_t *, int); static bool pathscross(Agnode_t *, Agnode_t *, Agedge_t *, Agedge_t *); static Agraph_t *cl_bound(graph_t*, Agnode_t *, Agnode_t *); -static int cl_vninside(Agraph_t *, Agnode_t *); +static bool cl_vninside(Agraph_t *, Agnode_t *); static void completeregularpath(path *, Agedge_t *, Agedge_t *, pathend_t *, pathend_t *, boxf *, int, int); static int edgecmp(Agedge_t **, Agedge_t **); @@ -2377,8 +2377,7 @@ static edge_t *bot_bound(edge_t * e, int side) /* common routines */ -static int cl_vninside(graph_t * cl, node_t * n) -{ +static bool cl_vninside(graph_t *cl, node_t *n) { return BETWEEN(GD_bb(cl).LL.x, ND_coord(n).x, GD_bb(cl).UR.x) && BETWEEN(GD_bb(cl).LL.y, ND_coord(n).y, GD_bb(cl).UR.y); } -- 2.40.0