commit | fe474b588b3cb1c23c987a3d0f9e869a160d82d2 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <nico@cam.org> | Tue Feb 21 20:41:41 2006 -0500 |
committer | Junio C Hamano <junkio@cox.net> | Wed Feb 22 00:36:09 2006 -0800 |
tree | 3cd775ae87a14604cf302d905e5fc409fab380b0 | |
parent | cac251d0bc4c68b7ab36026990aff3c783913ae6 [diff] |
diff-delta: fold two special tests into one plus cleanups Testing for realloc and size limit can be done with only one test per loop. Make it so and fix a theoretical off-by-one comparison error in the process. The output buffer memory allocation is also bounded by max_size when specified. Finally make some variable unsigned to allow the handling of files up to 4GB in size instead of 2GB. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>