Skip to content

Commit

Permalink
count-delta: fix counting of copied source.
Browse files Browse the repository at this point in the history
The previous one wrongly coalesced a span with the next one
even though the span being added does not reach it.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 23, 2006
1 parent 907380e commit c86e856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion count-delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void touch_range(struct span **span,
again:
if (ofs < e->end) {
while (e->end < end) {
if (e->next) {
if (e->next && e->next->ofs <= end) {
e->end = e->next->ofs;
e = e->next;
}
Expand Down

0 comments on commit c86e856

Please sign in to comment.