diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-06-23 21:38:56 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-12-31 22:19:18 +0200 |
commit | a45d1a5374ceb22e23255b0b595b9e641e9860af (patch) | |
tree | ac0a6e71d077fae66d9b2e7881cc05aa1130e4ed /src/liblzma/simple/x86.c | |
parent | tuklib_integer: Silence warnings from -Wsign-conversion. (diff) | |
download | xz-a45d1a5374ceb22e23255b0b595b9e641e9860af.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/simple/x86.c')
-rw-r--r-- | src/liblzma/simple/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/simple/x86.c b/src/liblzma/simple/x86.c index 0b14807e..0e78909c 100644 --- a/src/liblzma/simple/x86.c +++ b/src/liblzma/simple/x86.c @@ -97,7 +97,7 @@ x86_code(void *simple_ptr, uint32_t now_pos, bool is_encoder, if (!Test86MSByte(b)) break; - src = dest ^ ((1 << (32 - i * 8)) - 1); + src = dest ^ ((1U << (32 - i * 8)) - 1); } buffer[buffer_pos + 4] |