From: Matthew Fernandez Date: Thu, 13 Jan 2022 04:38:44 +0000 (-0800) Subject: edge_compatibility_full: use a C++ bool for 'flipped' X-Git-Tag: 3.0.0~69^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f74e615a609f57f10e37a7e292cd3f3ae568d6cb;p=graphviz edge_compatibility_full: use a C++ bool for 'flipped' Gitlab: #2154 --- diff --git a/lib/mingle/edge_bundling.cpp b/lib/mingle/edge_bundling.cpp index d2a8ec8e4..b328b801d 100644 --- a/lib/mingle/edge_bundling.cpp +++ b/lib/mingle/edge_bundling.cpp @@ -125,7 +125,8 @@ static double edge_compatibility_full(pedge e1, pedge e2){ */ double *u1, *v1, *u2, *v2, *u, dist1, dist2, len1, len2, len; double tmp, ca, cp, cs; - int dim = e1->dim, flipped = FALSE, i; + int dim = e1->dim, i; + bool flipped = false; u1 = e1->x; v1 = e1->x+e1->npoints*dim-dim; @@ -138,7 +139,7 @@ static double edge_compatibility_full(pedge e1, pedge e2){ u2 = v2; v2 = u; dist1 = dist2; - flipped = TRUE; + flipped = true; } len1 = std::max(dist(dim, u1, v1), SMALL); len2 = std::max(dist(dim, u2, v2), SMALL);