X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flzms_compress.c;h=f42a46ee2fe8d82292265dd5d9685c7bf9f5bbdf;hp=e811a87658bda5eea3db465bf5c446f068a6229e;hb=0096c56e9a0ee15f708523075d67ea7a1d77b456;hpb=f370a82a53f55b8713266263096b96e07e02f4a0 diff --git a/src/lzms_compress.c b/src/lzms_compress.c index e811a876..f42a46ee 100644 --- a/src/lzms_compress.c +++ b/src/lzms_compress.c @@ -498,7 +498,7 @@ lzms_range_encoder_shift_low(struct lzms_range_encoder *rc) do { if (likely(rc->next >= rc->begin)) { if (rc->next != rc->end) { - put_unaligned_u16_le(rc->cache + + put_unaligned_le16(rc->cache + (u16)(rc->lower_bound >> 32), rc->next++); } @@ -658,7 +658,7 @@ lzms_write_bits(struct lzms_output_bitstream *os, const u32 bits, /* Write a coding unit, unless it would underflow the buffer. */ if (os->next != os->begin) - put_unaligned_u16_le(os->bitbuf >> os->bitcount, --os->next); + put_unaligned_le16(os->bitbuf >> os->bitcount, --os->next); /* Optimization for call sites that never write more than 16 * bits at once. */ @@ -679,7 +679,7 @@ lzms_output_bitstream_flush(struct lzms_output_bitstream *os) return false; 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); return true; }