[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 <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Junio C Hamano
2005-06-29 00:32:11 -07:00
committed by Linus Torvalds
parent dcde55bc58
commit 3c84974207
3 changed files with 6 additions and 9 deletions

View File

@ -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,