From 3c84974207fb6a98eaa393cd4c3481d8ecdb8ce2 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 29 Jun 2005 00:32:11 -0700 Subject: [PATCH] Fixlets on top of Nico's clean-up. If we prefer 0 as maxsize for diff_delta() to say "unlimited", let's be consistent about it. This patch also fixes type mismatch in a call to get_delta_hdr_size() from packed_delta_info(). Signed-off-by: Junio C Hamano Signed-off-by: Linus Torvalds --- diffcore-break.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diffcore-break.c') diff --git a/diffcore-break.c b/diffcore-break.c index 9852f9716c..06f9a7f0ee 100644 --- a/diffcore-break.c +++ b/diffcore-break.c @@ -65,7 +65,7 @@ static int should_break(struct diff_filespec *src, delta = diff_delta(src->data, src->size, dst->data, dst->size, - &delta_size, ~0UL); + &delta_size, 0); /* Estimate the edit size by interpreting delta. */ if (count_delta(delta, delta_size, -- cgit v1.2.3