From fff2d77497adc7541625b5e877348ffa08e79583 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Fri, 28 Jul 2023 19:07:57 +0000 Subject: [PATCH] use INT32_MAX rather than INT_MAX for GOT_FILEIDX_MAX_ENTRIES it's a different way to spell the same number, but it's more evocative since the on-disk format is 32 bits wide. ok stsp --- lib/fileindex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fileindex.c b/lib/fileindex.c index f805efad..a27a238b 100644 --- a/lib/fileindex.c +++ b/lib/fileindex.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -50,7 +51,7 @@ struct got_fileindex { struct got_fileindex_tree entries; int nentries; /* Does not include entries marked for removal. */ -#define GOT_FILEIDX_MAX_ENTRIES INT_MAX +#define GOT_FILEIDX_MAX_ENTRIES INT32_MAX }; mode_t -- 2.11.4.GIT