]> granicus.if.org Git - graphviz/commitdiff
dotgen leftOf: use a more appropriate return type
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 8 Sep 2022 00:27:49 +0000 (17:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Jan 2023 16:24:43 +0000 (08:24 -0800)
lib/dotgen/dotsplines.c

index 5d35c588ff070c2a898b03c3ab7905e11c541a17..a805a6573f2e381e998e9576e50927a1dd5a4c25 100644 (file)
@@ -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;
 }