From: Matthew Fernandez Date: Thu, 8 Sep 2022 00:27:49 +0000 (-0700) Subject: dotgen leftOf: use a more appropriate return type X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32f2d5d6e90cb6272ecae3e4be1d0eec16527175;p=graphviz dotgen leftOf: use a more appropriate return type --- 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; }