From 78d4395e301cb3c8f36d15f77c7b4cb30d67365d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 19 Nov 2022 15:11:35 -0800 Subject: [PATCH] neatogen parseFactor: replace 'MIN' and 'MAX' with stdlib equivalents --- lib/neatogen/adjust.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index cf7bbaf02..3f54ee484 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -1209,12 +1209,12 @@ parseFactor (char* s, expand_t* pp, float sepfact, float dflt) if (i == 1) y = x; if (pp->doAdd) { if (sepfact > 1) { - pp->x = MIN(dflt,x/sepfact); - pp->y = MIN(dflt,y/sepfact); + pp->x = fminf(dflt, x/sepfact); + pp->y = fminf(dflt, y/sepfact); } else if (sepfact < 1) { - pp->x = MAX(dflt,x/sepfact); - pp->y = MAX(dflt,y/sepfact); + pp->x = fmaxf(dflt, x/sepfact); + pp->y = fmaxf(dflt, y/sepfact); } else { pp->x = x; -- 2.40.0