mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
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:
parent
22bac0ea52
commit
ecaebf4af1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user