From: Matthew Fernandez Date: Tue, 11 Jan 2022 04:50:18 +0000 (-0800) Subject: shape_clip: use a C99 bool for local 'left_inside' X-Git-Tag: 3.0.0~72^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49e71e9e2d738ced2277b34fcc516f574f062fd7;p=graphviz shape_clip: use a C99 bool for local 'left_inside' --- 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: