diff options
Diffstat (limited to 'xdelta3/xdelta3.c')
-rw-r--r-- | xdelta3/xdelta3.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/xdelta3/xdelta3.c b/xdelta3/xdelta3.c index c22c763..2d6f926 100644 --- a/xdelta3/xdelta3.c +++ b/xdelta3/xdelta3.c | |||
@@ -2560,9 +2560,9 @@ xoff_t xd3_source_eof(const xd3_source *src) | |||
2560 | } | 2560 | } |
2561 | 2561 | ||
2562 | inline | 2562 | inline |
2563 | usize_t xd3_bytes_on_srcblk (xd3_source *src, xoff_t blkno) | 2563 | xoff_t xd3_bytes_on_srcblk (xd3_source *src, xoff_t blkno) |
2564 | { | 2564 | { |
2565 | usize_t r = (blkno == src->max_blkno ? | 2565 | xoff_t r = (blkno == src->max_blkno ? |
2566 | src->onlastblk : | 2566 | src->onlastblk : |
2567 | src->blksize); | 2567 | src->blksize); |
2568 | return r; | 2568 | return r; |
@@ -3697,7 +3697,7 @@ xd3_encode_init (xd3_stream *stream, int full_init) | |||
3697 | if (large_comp) | 3697 | if (large_comp) |
3698 | { | 3698 | { |
3699 | usize_t hash_values = (stream->src->max_winsize / | 3699 | usize_t hash_values = (stream->src->max_winsize / |
3700 | stream->smatcher.large_step); | 3700 | stream->smatcher.large_step); |
3701 | 3701 | ||
3702 | xd3_size_hashtable (stream, | 3702 | xd3_size_hashtable (stream, |
3703 | hash_values, | 3703 | hash_values, |
@@ -4615,9 +4615,9 @@ xd3_source_extend_match (xd3_stream *stream) | |||
4615 | of the input match being tested. */ | 4615 | of the input match being tested. */ |
4616 | xoff_t tryblk; /* tryblk, tryoff are the block, offset position | 4616 | xoff_t tryblk; /* tryblk, tryoff are the block, offset position |
4617 | of matchoff */ | 4617 | of matchoff */ |
4618 | usize_t tryoff; | 4618 | xoff_t tryoff; |
4619 | usize_t tryrem; /* tryrem is the number of matchable bytes */ | 4619 | xoff_t tryrem; /* tryrem is the number of matchable bytes */ |
4620 | usize_t matched; | 4620 | xoff_t matched; |
4621 | 4621 | ||
4622 | IF_DEBUG2(DP(RINT "[extend match] srcpos %"Q"u\n", | 4622 | IF_DEBUG2(DP(RINT "[extend match] srcpos %"Q"u\n", |
4623 | stream->match_srcpos)); | 4623 | stream->match_srcpos)); |
@@ -5095,8 +5095,8 @@ xd3_srcwin_move_point (xd3_stream *stream, usize_t *next_move_point) | |||
5095 | xoff_t blkno; | 5095 | xoff_t blkno; |
5096 | xoff_t blkbaseoffset; | 5096 | xoff_t blkbaseoffset; |
5097 | usize_t blkrem; | 5097 | usize_t blkrem; |
5098 | ssize_t oldpos; /* Using ssize_t because of a */ | 5098 | size_t oldpos; /* Using ssize_t because of a */ |
5099 | ssize_t blkpos; /* do { blkpos-- } | 5099 | size_t blkpos; /* do { blkpos-- } |
5100 | while (blkpos >= oldpos); */ | 5100 | while (blkpos >= oldpos); */ |
5101 | int ret; | 5101 | int ret; |
5102 | xd3_blksize_div (stream->srcwin_cksum_pos, | 5102 | xd3_blksize_div (stream->srcwin_cksum_pos, |
@@ -5126,7 +5126,7 @@ xd3_srcwin_move_point (xd3_stream *stream, usize_t *next_move_point) | |||
5126 | 5126 | ||
5127 | blkpos = xd3_bytes_on_srcblk (stream->src, blkno); | 5127 | blkpos = xd3_bytes_on_srcblk (stream->src, blkno); |
5128 | 5128 | ||
5129 | if (blkpos < (ssize_t) stream->smatcher.large_look) | 5129 | if (blkpos < (size_t) stream->smatcher.large_look) |
5130 | { | 5130 | { |
5131 | stream->srcwin_cksum_pos = (blkno + 1) * stream->src->blksize; | 5131 | stream->srcwin_cksum_pos = (blkno + 1) * stream->src->blksize; |
5132 | IF_DEBUG1 (DP(RINT "[srcwin_move_point] continue (end-of-block)\n")); | 5132 | IF_DEBUG1 (DP(RINT "[srcwin_move_point] continue (end-of-block)\n")); |