1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-21 00:25:37 +00:00

[encoding] compilation fix (unsigned int bitfields)

This commit is contained in:
Witold Filipczyk 2024-04-18 08:51:56 +02:00
parent 49ef584853
commit 324bd02aa9
3 changed files with 5 additions and 5 deletions

View File

@ -36,8 +36,8 @@ struct bz2_enc_data {
* end-of-stream marker and all data has been decompressed. * end-of-stream marker and all data has been decompressed.
* Then we neither read from the file nor call BZ2_bzDecompress * Then we neither read from the file nor call BZ2_bzDecompress
* any more. */ * any more. */
int last_read:1; unsigned int last_read:1;
int after_end:1; unsigned int after_end:1;
/* A buffer for data that has been read from the file but not /* A buffer for data that has been read from the file but not
* yet decompressed. fbz_stream.next_in and fbz_stream.avail_in * yet decompressed. fbz_stream.next_in and fbz_stream.avail_in

View File

@ -27,8 +27,8 @@
struct lzma_enc_data { struct lzma_enc_data {
lzma_stream flzma_stream; lzma_stream flzma_stream;
int fdread; int fdread;
int last_read:1; unsigned int last_read:1;
int after_end:1; unsigned int after_end:1;
unsigned char buf[ELINKS_BZ_BUFFER_LENGTH]; unsigned char buf[ELINKS_BZ_BUFFER_LENGTH];
}; };

View File

@ -35,7 +35,7 @@ struct zstd_enc_data {
size_t sent_pos; size_t sent_pos;
/* The file descriptor from which we read. */ /* The file descriptor from which we read. */
int fdread; int fdread;
int decoded:1; unsigned int decoded:1;
}; };
static int static int