From: Matthew Fernandez Date: Sun, 6 Jun 2021 02:23:52 +0000 (-0700) Subject: use a stronger return type for inBetween X-Git-Tag: 2.47.3~9^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0adf1eb9f00923938879abe083907fae23bd24e2;p=graphviz use a stronger return type for inBetween --- diff --git a/lib/pathplan/visibility.c b/lib/pathplan/visibility.c index f210e7059..f1c1c18c7 100644 --- a/lib/pathplan/visibility.c +++ b/lib/pathplan/visibility.c @@ -10,6 +10,7 @@ #include +#include #include /* TRANSPARENT means router sees past colinear obstacles */ @@ -68,7 +69,7 @@ int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c) /* inBetween: * Return true if c is in (a,b), assuming a,b,c are collinear. */ -static int inBetween(Ppoint_t a, Ppoint_t b, Ppoint_t c) +static bool inBetween(Ppoint_t a, Ppoint_t b, Ppoint_t c) { if (a.x != b.x) /* not vertical */ return (a.x < c.x && c.x < b.x) || (b.x < c.x && c.x < a.x);