From: Matthew Fernandez Date: Sat, 19 Nov 2022 23:11:35 +0000 (-0800) Subject: neatogen parseFactor: replace 'MIN' and 'MAX' with stdlib equivalents X-Git-Tag: 7.0.3~1^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78d4395e301cb3c8f36d15f77c7b4cb30d67365d;p=graphviz neatogen parseFactor: replace 'MIN' and 'MAX' with stdlib equivalents --- 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;