diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-23 21:38:56 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-23 21:38:56 +0300 |
commit | dfac2c9a1d7d4a2b8a5d7c9c6d567dee48318bcf (patch) | |
tree | a7f2f8d656bb83f7c6d31e292505d90ba1c980d1 /src/liblzma/common | |
parent | tuklib_integer: Silence warnings from -Wsign-conversion. (diff) | |
download | xz-dfac2c9a1d7d4a2b8a5d7c9c6d567dee48318bcf.tar.xz |
liblzma: Fix warnings from -Wsign-conversion.
Also, more parentheses were added to the literal_subcoder
macro in lzma_comon.h (better style but no functional change
in the current usage).
Diffstat (limited to 'src/liblzma/common')
-rw-r--r-- | src/liblzma/common/block_header_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/block_header_decoder.c b/src/liblzma/common/block_header_decoder.c index 730c5244..39d4886e 100644 --- a/src/liblzma/common/block_header_decoder.c +++ b/src/liblzma/common/block_header_decoder.c @@ -101,7 +101,7 @@ lzma_block_header_decode(lzma_block *block, block->uncompressed_size = LZMA_VLI_UNKNOWN; // Filter Flags - const size_t filter_count = (in[1] & 3) + 1; + const size_t filter_count = (in[1] & 3U) + 1; for (size_t i = 0; i < filter_count; ++i) { const lzma_ret ret = lzma_filter_flags_decode( &block->filters[i], allocator, |