From: Junio C Hamano Date: Sun, 7 Jan 2007 08:11:11 +0000 (-0800) Subject: Spell default packedgitlimit slightly differently X-Git-Tag: v1.5.0-rc1~64^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ecaebf4af1212f8a74bc560a66c76c22e7c87131;p=git.git 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 --- diff --git a/git-compat-util.h b/git-compat-util.h index 55456da37..e023bf141 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