Fix delta "sliding window" code
commit78817c15de0dfb408d1e35a2f692f54dc51e80a3
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 26 Jun 2005 01:29:23 +0000 (25 18:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 26 Jun 2005 01:29:23 +0000 (25 18:29 -0700)
tree35370170f660f0fd308f7d45a510e5176b839903
parenteb41ab11e8eaa1bd71a4413d71583d72dd181b33
Fix delta "sliding window" code

When Junio fixed the lack of a successful error code from try_delta(),
that uncovered an off-by-one error in the caller.

Also, some testing made it clear that we now find a lot more deltas,
because we used to (incorrectly) break early on bogus "failure"
cases.
pack-objects.c