Commit 328103482aceca6789e2e8644c28637aadc4c2c2

Nelson Elhage 2018-07-20T08:43:54

Use UINT32_MAX as the default object limit This replicates the old behavior of limiting to 2³² by default.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/indexer.c b/src/indexer.c
index 2315320..4f0c5ca 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -22,7 +22,7 @@
 
 extern git_mutex git__mwindow_mutex;
 
-size_t git_indexer__max_objects = (size_t)-1;
+size_t git_indexer__max_objects = UINT32_MAX;
 
 #define UINT31_MAX (0x7FFFFFFF)