]> granicus.if.org Git - graphviz/commitdiff
lib/mingle: replace some 'MIN' usage with 'std::min'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 7 Jan 2022 03:38:52 +0000 (19:38 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 8 Jan 2022 16:15:32 +0000 (08:15 -0800)
lib/mingle/ink.cpp

index e88cf2e3a7cfc5163172eda60dc1c61786798eeb..4e44d82d2fc61429a7804c52f90a04a883dce0e8 100644 (file)
@@ -165,7 +165,8 @@ static double bestInk(const std::vector<point_t> &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;