From: Matthew Fernandez Date: Sat, 13 Nov 2021 03:00:46 +0000 (-0800) Subject: sccmap.c: use libc support to define 'INF' X-Git-Tag: 2.50.0~26^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9efbaf411272c3a7d423b45ea83d1c2c52ea25ff;p=graphviz sccmap.c: use libc support to define 'INF' Squashes a -Wconversion warning. --- diff --git a/cmd/tools/sccmap.c b/cmd/tools/sccmap.c index d5dc010d8..ef13244ae 100644 --- a/cmd/tools/sccmap.c +++ b/cmd/tools/sccmap.c @@ -21,6 +21,7 @@ */ #include "config.h" +#include #include #include #ifdef HAVE_UNISTD_H @@ -31,7 +32,7 @@ #include -#define INF ((unsigned int)(-1)) +#define INF UINT_MAX typedef struct Agraphinfo_t { Agrec_t h;