summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-07 00:11:11 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-07 00:11:11 -0800
commitecaebf4af1212f8a74bc560a66c76c22e7c87131 (patch)
tree77ae3ba202683ad6a6db21f75397b055a1b6b0df /git-compat-util.h
parent22bac0ea528fd419cb833cab5de79a36fad91524 (diff)
downloadgit-ecaebf4af1212f8a74bc560a66c76c22e7c87131.tar.gz
Spell default packedgitlimit slightly differently
This is shorter and easier to read, and also makes sure the constant expression does not overflow integer range. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-compat-util.h')
-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