From 70bdc5b506002364abf2cb88a65d10510677d408 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 23 Oct 2021 13:50:27 -0700 Subject: [PATCH] bezier_clip: use a C99 bool for 'found' --- lib/common/splines.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/common/splines.c b/lib/common/splines.c index bcc412699..d40398f0c 100644 --- a/lib/common/splines.c +++ b/lib/common/splines.c @@ -16,6 +16,7 @@ #include #include #include +#include #ifdef DEBUG static int debugleveln(edge_t* e, int i) @@ -108,7 +109,7 @@ void bezier_clip(inside_t * inside_context, { pointf seg[4], best[4], pt, opt, *left, *right; double low, high, t, *idir, *odir; - boolean found; + bool found; int i; if (left_inside) { @@ -124,7 +125,7 @@ void bezier_clip(inside_t * inside_context, idir = &high; odir = &low; } - found = FALSE; + found = false; low = 0.0; high = 1.0; do { @@ -136,7 +137,7 @@ void bezier_clip(inside_t * inside_context, } else { for (i = 0; i < 4; i++) best[i] = seg[i]; - found = TRUE; + found = true; *odir = t; } } while (fabs(opt.x - pt.x) > .5 || fabs(opt.y - pt.y) > .5); -- 2.40.0