From 49e71e9e2d738ced2277b34fcc516f574f062fd7 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 10 Jan 2022 20:50:18 -0800 Subject: [PATCH] shape_clip: use a C99 bool for local 'left_inside' --- lib/common/splines.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/splines.c b/lib/common/splines.c index 718b550ee..636ee2ad4 100644 --- a/lib/common/splines.c +++ b/lib/common/splines.c @@ -192,7 +192,7 @@ shape_clip0(inside_t * inside_context, node_t * n, pointf curve[4], void shape_clip(node_t * n, pointf curve[4]) { double save_real_size; - boolean left_inside; + bool left_inside; pointf c; inside_t inside_context; @@ -204,9 +204,9 @@ void shape_clip(node_t * n, pointf curve[4]) save_real_size = ND_rw(n); c.x = curve[0].x - ND_coord(n).x; c.y = curve[0].y - ND_coord(n).y; - left_inside = ND_shape(n)->fns->insidefn(&inside_context, c); + left_inside = ND_shape(n)->fns->insidefn(&inside_context, c) != FALSE; ND_rw(n) = save_real_size; - shape_clip0(&inside_context, n, curve, left_inside != FALSE); + shape_clip0(&inside_context, n, curve, left_inside); } /* new_spline: -- 2.40.0