Show More
@@ -78,8 +78,7 b' static int gather(struct mpatch_flist *d' | |||||
78 | /* save this hunk */ |
|
78 | /* save this hunk */ | |
79 | offset += s->start + s->len - s->end; |
|
79 | offset += s->start + s->len - s->end; | |
80 | *d++ = *s++; |
|
80 | *d++ = *s++; | |
81 | } |
|
81 | } else { | |
82 | else { |
|
|||
83 | /* break up this hunk */ |
|
82 | /* break up this hunk */ | |
84 | c = cut - offset; |
|
83 | c = cut - offset; | |
85 | if (s->end < c) |
|
84 | if (s->end < c) | |
@@ -122,8 +121,7 b' static int discard(struct mpatch_flist *' | |||||
122 | if (postend <= cut) { |
|
121 | if (postend <= cut) { | |
123 | offset += s->start + s->len - s->end; |
|
122 | offset += s->start + s->len - s->end; | |
124 | s++; |
|
123 | s++; | |
125 | } |
|
124 | } else { | |
126 | else { |
|
|||
127 | c = cut - offset; |
|
125 | c = cut - offset; | |
128 | if (s->end < c) |
|
126 | if (s->end < c) | |
129 | c = s->end; |
|
127 | c = s->end; |
General Comments 0
You need to be logged in to leave comments.
Login now