commit 4ada367c22bf146c8150cb54c980abc40c6e4465 from: Omar Polo date: Fri Jul 28 19:07:57 2023 UTC 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 commit - 9b2430434d761486865c6b0961d5053349c571eb commit + 4ada367c22bf146c8150cb54c980abc40c6e4465 blob - 76f82954347761e003c7cb88088506c09a363673 blob + 62f7df1b95d5d56bd0b23c83df32e7d74f3d4b00 --- lib/fileindex.c +++ lib/fileindex.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -53,7 +54,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