compress.c, decompress.h: Use correct little endian annotations
authorEric Biggers <ebiggers3@gmail.com>
Fri, 17 May 2013 18:04:57 +0000 (13:04 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 17 May 2013 18:04:57 +0000 (13:04 -0500)
include/wimlib/decompress.h
src/compress.c

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;
index e7e199149edc7574bd258e605d2ed27a41b54cb3..b25938f15d5dacda8fe590163eefe9483a5b7bef 100644 (file)
@@ -38,7 +38,7 @@
 static inline void
 flush_bits(struct output_bitstream *ostream)
 {
-       *(u16*)ostream->bit_output = cpu_to_le16(ostream->bitbuf);
+       *(le16*)ostream->bit_output = cpu_to_le16(ostream->bitbuf);
        ostream->bit_output = ostream->next_bit_output;
        ostream->next_bit_output = ostream->output;
        ostream->output += 2;