X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fcompress_common.c;h=1653b04f2362db20838447442149badb09707c58;hp=bdac4ed99657aa5617360ccb105e420caa0e9650;hb=31786dbc470c919893bf4fc5cc91a0f73cbee720;hpb=dbe9b4a4b81485ba2a52a307a08adc048ea22bdd diff --git a/src/compress_common.c b/src/compress_common.c index bdac4ed9..1653b04f 100644 --- a/src/compress_common.c +++ b/src/compress_common.c @@ -80,11 +80,11 @@ bitstream_put_byte(struct output_bitstream *ostream, u8 n) * * Returns -1 if the stream has overrun; otherwise returns the total number of * bytes in the output. */ -input_idx_t +u32 flush_output_bitstream(struct output_bitstream *ostream) { if (unlikely(ostream->overrun)) - return ~(input_idx_t)0; + return (u32)~0UL; *(le16*)ostream->bit_output = cpu_to_le16((u16)((u32)ostream->bitbuf << ostream->free_bits));