]> granicus.if.org Git - graphviz/commitdiff
neatogen computeScale: swap 'MIN' for stdlib equivalent
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 6 Dec 2022 05:39:11 +0000 (21:39 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 6 Dec 2022 05:39:11 +0000 (21:39 -0800)
lib/neatogen/constraint.c

index a010761242cc681ba8a6645ab44c28b0e9ddc6f1..45f3de0c6072bd497cc08bc78f5b6c031cebf830 100644 (file)
@@ -778,7 +778,7 @@ static double computeScale(pointf *aarr, size_t m) {
     aarr++;
     for (size_t i = 1; i < m; i++) {
        p = *aarr++;
-       v = MIN(p.x, p.y);
+       v = fmin(p.x, p.y);
        if (v > sc)
            sc = v;
     }