@matheusbsbs / matheus-bagliano / commits / ecaebf4af1
Fork 0

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>

Junio C Hamano committed Jan 7, 2007 at 00:11 UTC ecaebf4af1212f8a74bc560a66c76c22e7c87131
1 file changed +1 -3
git-compat-util.h
+1 -3
@@ -105,9 +105,7 @@ extern int git_munmap(void *start, size_t length);
105 #endif /* NO_MMAP */
106
107 #define DEFAULT_PACKED_GIT_LIMIT \
108 - (sizeof(void*) >= 8 \
109 - ? 8 * 1024 * 1024 * 1024 \
110 - : 256 * 1024 * 1024)
108 + ((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256))
109
110 #ifdef NO_SETENV
111 #define setenv gitsetenv