Call sliding_get_sb directly in sliding_next_tag

This commit is contained in:
ckolivas 2015-03-08 00:52:27 +11:00
parent 70db73b955
commit cf35575c72

4
rzip.c
View file

@ -437,9 +437,9 @@ static void sliding_next_tag(rzip_control *control, struct rzip_state *st, i64 p
{ {
uchar *u; uchar *u;
u = control->get_sb(control, p - 1); u = sliding_get_sb(control, p - 1);
*t ^= st->hash_index[*u]; *t ^= st->hash_index[*u];
u = control->get_sb(control, p + MINIMUM_MATCH - 1); u = sliding_get_sb(control, p + MINIMUM_MATCH - 1);
*t ^= st->hash_index[*u]; *t ^= st->hash_index[*u];
} }