X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flzx_compress.c;h=19e2daa2a97de024115e4b65ff0097661cd05a73;hb=993d197cac3a09508f2afefe0e2a620d7e43fa1a;hp=520c07e33572081b7756a9c3622733522569817a;hpb=ab64cfca6f15354ccef5a86441cd9c35898a220a;p=wimlib diff --git a/src/lzx_compress.c b/src/lzx_compress.c index 520c07e3..19e2daa2 100644 --- a/src/lzx_compress.c +++ b/src/lzx_compress.c @@ -586,13 +586,13 @@ lzx_flush_bits(struct lzx_output_bitstream *os, unsigned max_num_bits) if (os->end - os->next < 6) return; - put_unaligned_u16_le(os->bitbuf >> ((os->bitcount - 16) & + put_unaligned_le16(os->bitbuf >> ((os->bitcount - 16) & shift_mask), os->next + 0); if (max_num_bits > 16) - put_unaligned_u16_le(os->bitbuf >> ((os->bitcount - 32) & + put_unaligned_le16(os->bitbuf >> ((os->bitcount - 32) & shift_mask), os->next + 2); if (max_num_bits > 32) - put_unaligned_u16_le(os->bitbuf >> ((os->bitcount - 48) & + put_unaligned_le16(os->bitbuf >> ((os->bitcount - 48) & shift_mask), os->next + 4); os->next += (os->bitcount >> 4) << 1; os->bitcount &= 15; @@ -617,7 +617,7 @@ lzx_flush_output(struct lzx_output_bitstream *os) return 0; if (os->bitcount != 0) { - put_unaligned_u16_le(os->bitbuf << (16 - os->bitcount), os->next); + put_unaligned_le16(os->bitbuf << (16 - os->bitcount), os->next); os->next += 2; } @@ -1883,7 +1883,6 @@ lzx_compress_near_optimal(struct lzx_compressor *c, bt_matchfinder_skip_position, in_begin, in_next - in_begin, - max_len, nice_len, c->max_search_depth, next_hashes);