commit fff2d77497adc7541625b5e877348ffa08e79583 from: Omar Polo via: Thomas Adam date: Sat Jul 29 19:05:01 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 - dcc9ed63460117b754511483eb416c5d530ac8fb commit + fff2d77497adc7541625b5e877348ffa08e79583 blob - f805efada85d4fb7fd154813f803164b71f25224 blob + a27a238bed16b32c894a7550a46b26e903460d93 --- lib/fileindex.c +++ 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