X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flz_bt.c;h=30250054f733f5574203f3f6bdabdddd8e50cb05;hb=41c221c509deed7dc9c2bd8eb8c7e93563b21199;hp=ec0342cad0c3cc03a69b66a73de59d460571c754;hpb=83a29687e9fd2a8b9367c735b6e3273ac82ef99b;p=wimlib diff --git a/src/lz_bt.c b/src/lz_bt.c index ec0342ca..30250054 100644 --- a/src/lz_bt.c +++ b/src/lz_bt.c @@ -242,7 +242,7 @@ do_search(const u8 window[restrict], const u32 max_depth, lz_bt_pos_t child_tab[restrict], lz_bt_pos_t cur_match, - struct raw_match matches[restrict]) + struct lz_match matches[restrict]) { /* * Here's my explanation of how this code actually works. Beware: this @@ -427,7 +427,7 @@ do_search(const u8 window[restrict], if (len > longest_match_len) { longest_match_len = len; - matches[num_matches++] = (struct raw_match) { + matches[num_matches++] = (struct lz_match) { .len = len, .offset = cur_window_pos - cur_match, }; @@ -474,7 +474,7 @@ do_search(const u8 window[restrict], * in the window. */ lz_bt_len_t -lz_bt_get_matches(struct lz_bt *mf, struct raw_match matches[]) +lz_bt_get_matches(struct lz_bt *mf, struct lz_match matches[]) { lz_bt_pos_t bytes_remaining; lz_bt_len_t num_matches; @@ -514,7 +514,7 @@ lz_bt_get_matches(struct lz_bt *mf, struct raw_match matches[]) if (cur_match != 0 && mf->cur_window[cur_match + 2] != mf->cur_window[mf->cur_window_pos + 2]) { - matches[num_matches++] = (struct raw_match) { + matches[num_matches++] = (struct lz_match) { .len = 2, .offset = mf->cur_window_pos - cur_match, };