From b6f4282eb19d9076750774afd6376c0776eeee93 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 5 Dec 2022 21:38:42 -0800 Subject: [PATCH] neatogen computeScaleXY: swap 'MAX' for stdlib equivalent --- lib/neatogen/constraint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.40.0