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>
This commit is contained in:
Junio C Hamano 2007-01-07 00:11:11 -08:00
parent 22bac0ea52
commit ecaebf4af1

View File

@ -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