From 38a948067390741f41cc70b9d2fc9fa70d126068 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 12 Feb 2022 14:15:55 +1100 Subject: [PATCH] neatogen: use '-FLT_MAX' as a sentinel instead of '-MAXFLOAT' This seems a more correct/appropriate way of achieving this in C99. --- lib/neatogen/multispline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.40.0