From 324bd02aa940f9ce18565d5015ff78c9987015f9 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 18 Apr 2024 08:51:56 +0200 Subject: [PATCH] [encoding] compilation fix (unsigned int bitfields) --- src/encoding/bzip2.c | 4 ++-- src/encoding/lzma.c | 4 ++-- src/encoding/zstd.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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