From: Matthew Fernandez Date: Thu, 13 Jan 2022 04:18:21 +0000 (-0800) Subject: lib/mingle/edge_bundling.cpp: replace 'MIN' with 'std::min' X-Git-Tag: 3.0.0~69^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=768b63f9f6b198f4d1a56e463d4ef9313423c561;p=graphviz lib/mingle/edge_bundling.cpp: replace 'MIN' with 'std::min' Gitlab: #2154 --- diff --git a/lib/mingle/edge_bundling.cpp b/lib/mingle/edge_bundling.cpp index ccd8eee77..2f4b8d027 100644 --- a/lib/mingle/edge_bundling.cpp +++ b/lib/mingle/edge_bundling.cpp @@ -167,7 +167,7 @@ static double edge_compatibility_full(pedge e1, pedge e2){ assert(ca > -0.001); /* scale compatibility */ - cs = 2 / (std::max(len1, len2) / len + len / MIN(len1, len2)); + cs = 2 / (std::max(len1, len2) / len + len / std::min(len1, len2)); assert(cs > -0.001 && cs < 1.001); /* position compatibility */