From: Matthew Fernandez Date: Thu, 13 Jan 2022 04:37:48 +0000 (-0800) Subject: edge_compatibility: use a C++ bool for 'flipped' X-Git-Tag: 3.0.0~69^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7c66ca25b05a082a6d7525f1af87a71d19d51eb;p=graphviz edge_compatibility: use a C++ bool for 'flipped' Gitlab: #2154 --- diff --git a/lib/mingle/edge_bundling.cpp b/lib/mingle/edge_bundling.cpp index 6a774ddb3..d2a8ec8e4 100644 --- a/lib/mingle/edge_bundling.cpp +++ b/lib/mingle/edge_bundling.cpp @@ -92,7 +92,8 @@ static double edge_compatibility(pedge e1, pedge e2){ return 1 if two edges are exactly the same, 0 if they are very different. */ double *u1, *v1, *u2, *v2, *u, dist1, dist2, len1, len2; - int dim = e1->dim, flipped = FALSE; + int dim = e1->dim; + bool flipped = false; u1 = e1->x; v1 = e1->x+e1->npoints*dim-dim; @@ -105,7 +106,7 @@ static double edge_compatibility(pedge e1, pedge e2){ u2 = v2; v2 = u; dist1 = dist2; - flipped = TRUE; + flipped = true; } len1 = dist(dim, u1, v1); len2 = dist(dim, u2, v2);