From: Matthew Fernandez Date: Sat, 12 Feb 2022 03:15:55 +0000 (+1100) Subject: neatogen: use '-FLT_MAX' as a sentinel instead of '-MAXFLOAT' X-Git-Tag: 3.0.0~30^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38a948067390741f41cc70b9d2fc9fa70d126068;p=graphviz neatogen: use '-FLT_MAX' as a sentinel instead of '-MAXFLOAT' This seems a more correct/appropriate way of achieving this in C99. --- diff --git a/lib/neatogen/multispline.c b/lib/neatogen/multispline.c index 43e66ee88..7d9fc3db9 100644 --- a/lib/neatogen/multispline.c +++ b/lib/neatogen/multispline.c @@ -8,6 +8,7 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ +#include #include #include #include @@ -1277,7 +1278,7 @@ typedef struct { #define N_DAD(n) dad[n] #define E_WT(e) (e->dist) -#define UNSEEN -MAXFLOAT +#define UNSEEN (-FLT_MAX) /* triPath: * Find the shortest path with lengths in g from