summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git-compat-util.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 55456da37c..e023bf1413 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -105,9 +105,7 @@ extern int git_munmap(void *start, size_t length);
#endif /* NO_MMAP */
#define DEFAULT_PACKED_GIT_LIMIT \
- (sizeof(void*) >= 8 \
- ? 8 * 1024 * 1024 * 1024 \
- : 256 * 1024 * 1024)
+ ((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
#ifdef NO_SETENV
#define setenv gitsetenv