From 9efbaf411272c3a7d423b45ea83d1c2c52ea25ff Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 12 Nov 2021 19:00:46 -0800 Subject: [PATCH] sccmap.c: use libc support to define 'INF' Squashes a -Wconversion warning. --- cmd/tools/sccmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.40.0