Skip to content

Commit

Permalink
Restore 2 block advancement (arbitrary)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacd committed Dec 27, 2015
1 parent be9efee commit 9a76ffd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xdelta3/xdelta3.c
Original file line number Diff line number Diff line change
Expand Up @@ -4398,11 +4398,10 @@ xd3_srcwin_move_point (xd3_stream *stream, usize_t *next_move_point)
/* TODO: The addition of 2 blocks here is arbitrary. Do a
* better job of stream alignment based on observed source copy
* addresses, and when both input sizes are known, the
* difference in size.
*/
* difference in size. */
target_cksum_pos = absolute_input_pos +
stream->src->max_winsize / 2 +
/*stream->src->blksize * 2*/;
stream->src->blksize * 2;
target_cksum_pos &= ~stream->src->maskby;
}

Expand Down

0 comments on commit 9a76ffd

Please sign in to comment.