From: Matthew Fernandez Date: Fri, 7 Jan 2022 03:38:52 +0000 (-0800) Subject: lib/mingle: replace some 'MIN' usage with 'std::min' X-Git-Tag: 3.0.0~88^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7c24b70f55b632fe1c1a3f6b5f8071eef404aa9;p=graphviz lib/mingle: replace some 'MIN' usage with 'std::min' --- diff --git a/lib/mingle/ink.cpp b/lib/mingle/ink.cpp index e88cf2e3a..4e44d82d2 100644 --- a/lib/mingle/ink.cpp +++ b/lib/mingle/ink.cpp @@ -165,7 +165,8 @@ static double bestInk(const std::vector &points, point_t begin, } } } - } while (fabs(value1-value4)/(MIN(value1,value4)+1e-10)>prec && dotPoint(diff, diff) > 1.e-20); + } while (fabs(value1 - value4) / (std::min(value1, value4) + 1e-10) > prec + && dotPoint(diff, diff) > 1.e-20); meeting = scalePoint(addPoint(first,fourth),0.5); *meet = meeting;