compress.c, decompress.h: Use correct little endian annotations
[wimlib] / include / wimlib / decompress.h
index a1963811d75b95c1d046e008f6d3debb22b1b0cd..0b8e11b6ba48021b285a0bb979b4d41c66072aa9 100644 (file)
@@ -76,7 +76,7 @@ bitstream_ensure_bits(struct input_bitstream *istream, unsigned num_bits)
                        unsigned shift = sizeof(input_bitbuf_t) * 8 - 16 -
                                         istream->bitsleft;
                        istream->bitbuf |= (input_bitbuf_t)le16_to_cpu(
-                                               *(u16*)istream->data) << shift;
+                                               *(le16*)istream->data) << shift;
                        istream->data += 2;
                        istream->bitsleft += 16;
                        istream->data_bytes_left -= 2;