Spell default packedgitlimit slightly differently
authorJunio C Hamano <junkio@cox.net>
Sun, 7 Jan 2007 08:11:11 +0000 (00:11 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 7 Jan 2007 08:11:11 +0000 (00:11 -0800)
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>
git-compat-util.h
index 55456da37cdd25126b7bccae879ca500176220f9..e023bf141363d87abfef358134e484ea85f32a15 100644 (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