Browse Source

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>
maint
Junio C Hamano 18 years ago
parent
commit
ecaebf4af1
  1. 4
      git-compat-util.h

4
git-compat-util.h

@ -105,9 +105,7 @@ extern int git_munmap(void *start, size_t length); @@ -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…
Cancel
Save