Commit Diff


commit - dcc9ed63460117b754511483eb416c5d530ac8fb
commit + fff2d77497adc7541625b5e877348ffa08e79583
blob - f805efada85d4fb7fd154813f803164b71f25224
blob + a27a238bed16b32c894a7550a46b26e903460d93
--- lib/fileindex.c
+++ lib/fileindex.c
@@ -24,6 +24,7 @@
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <string.h>
 #include <limits.h>
 #include <unistd.h>
@@ -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