From: Matthew Fernandez Date: Tue, 6 Dec 2022 05:38:42 +0000 (-0800) Subject: neatogen computeScaleXY: swap 'MAX' for stdlib equivalent X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6f4282eb19d9076750774afd6376c0776eeee93;p=graphviz neatogen computeScaleXY: swap 'MAX' for stdlib equivalent --- diff --git a/lib/neatogen/constraint.c b/lib/neatogen/constraint.c index adbf31cd6..a01076124 100644 --- a/lib/neatogen/constraint.c +++ b/lib/neatogen/constraint.c @@ -12,6 +12,7 @@ #include "config.h" #include #include +#include #include #include #include @@ -742,7 +743,7 @@ static pointf computeScaleXY(pointf *aarr, size_t m) { barr[m - 1].y = 1; for (size_t k = m - 2; m > 1; k--) { barr[k].x = aarr[k].x; - barr[k].y = MAX(aarr[k + 1].y, barr[k + 1].y); + barr[k].y = fmax(aarr[k + 1].y, barr[k + 1].y); if (k == 0) { break; }