diff --git a/src/encoding/bzip2.c b/src/encoding/bzip2.c index 8591d634..6a203b53 100644 --- a/src/encoding/bzip2.c +++ b/src/encoding/bzip2.c @@ -36,8 +36,8 @@ struct bz2_enc_data { * end-of-stream marker and all data has been decompressed. * Then we neither read from the file nor call BZ2_bzDecompress * any more. */ - int last_read:1; - int after_end:1; + unsigned int last_read:1; + unsigned int after_end:1; /* A buffer for data that has been read from the file but not * yet decompressed. fbz_stream.next_in and fbz_stream.avail_in diff --git a/src/encoding/lzma.c b/src/encoding/lzma.c index ee37cb82..b2048be8 100644 --- a/src/encoding/lzma.c +++ b/src/encoding/lzma.c @@ -27,8 +27,8 @@ struct lzma_enc_data { lzma_stream flzma_stream; int fdread; - int last_read:1; - int after_end:1; + unsigned int last_read:1; + unsigned int after_end:1; unsigned char buf[ELINKS_BZ_BUFFER_LENGTH]; }; diff --git a/src/encoding/zstd.c b/src/encoding/zstd.c index 98bbcd8f..f8d63880 100644 --- a/src/encoding/zstd.c +++ b/src/encoding/zstd.c @@ -35,7 +35,7 @@ struct zstd_enc_data { size_t sent_pos; /* The file descriptor from which we read. */ int fdread; - int decoded:1; + unsigned int decoded:1; }; static int