From eec11c24840bfc5293a80fed3c3b1e5bc10ac453 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 16 Jan 2007 04:25:12 -0500 Subject: [PATCH] Correct max_packsize default in fast-import. Apparently amd64 has defined 'unsigned long' to be a 64 bit value, which means -1 was way over the 4 GiB packfile limit. Whoops. Signed-off-by: Shawn O. Pearce --- fast-import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast-import.c b/fast-import.c index 281b8f6a5e..8342314bb0 100644 --- a/fast-import.c +++ b/fast-import.c @@ -217,7 +217,7 @@ struct hash_list /* Configured limits on output */ static unsigned long max_depth = 10; -static unsigned long max_packsize = -1; +static unsigned long max_packsize = (1LL << 32) - 1; static uintmax_t max_objects = -1; /* Stats and misc. counters */