Skip to content

Commit

Permalink
Spell default packedgitlimit slightly differently
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jan 7, 2007
1 parent 22bac0e commit ecaebf4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecaebf4

Please sign in to comment.