Commit Diff


commit - 9b2430434d761486865c6b0961d5053349c571eb
commit + 4ada367c22bf146c8150cb54c980abc40c6e4465
blob - 76f82954347761e003c7cb88088506c09a363673
blob + 62f7df1b95d5d56bd0b23c83df32e7d74f3d4b00
--- lib/fileindex.c
+++ lib/fileindex.c
@@ -23,6 +23,7 @@
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <string.h>
 #include <sha1.h>
 #include <sha2.h>
@@ -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