From 32f2d5d6e90cb6272ecae3e4be1d0eec16527175 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 7 Sep 2022 17:27:49 -0700 Subject: [PATCH] dotgen leftOf: use a more appropriate return type --- lib/dotgen/dotsplines.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index 5d35c588f..a805a6573 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -1674,9 +1674,7 @@ make_flat_edge(graph_t* g, spline_info_t* sp, path * P, edge_t ** edges, int ind /* ccw: * Return true if p3 is to left of ray p1->p2 */ -static int -leftOf (pointf p1, pointf p2, pointf p3) -{ +static bool leftOf(pointf p1, pointf p2, pointf p3) { return (p1.y - p2.y) * (p3.x - p2.x) - (p3.y - p2.y) * (p1.x - p2.x) > 0; } -- 2.50.1