From 188960c5e70f8cb8bca5f3ca2a094b2e5e6d07e9 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 10 Jan 2022 20:40:37 -0800 Subject: [PATCH] compassPort: use a C99 bool for local 'dyna' --- lib/common/shapes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/shapes.c b/lib/common/shapes.c index d2d5fe496..646ead852 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -2536,7 +2536,7 @@ compassPort(node_t * n, boxf * bp, port * pp, char *compass, int sides, int rv = 0; double theta = 0.0; bool constrain = false; - boolean dyna = FALSE; + bool dyna = false; int side = 0; boolean clip = TRUE; boolean defined; @@ -2677,7 +2677,7 @@ compassPort(node_t * n, boxf * bp, port * pp, char *compass, int sides, } break; case '_': - dyna = TRUE; + dyna = true; side = sides; break; case 'c': @@ -2707,7 +2707,7 @@ compassPort(node_t * n, boxf * bp, port * pp, char *compass, int sides, pp->constrained = constrain ? TRUE : FALSE; pp->defined = defined; pp->clip = clip; - pp->dyna = dyna; + pp->dyna = dyna ? TRUE : FALSE; return rv; } -- 2.40.0