]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Silence a warning.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 14 Feb 2024 17:05:58 +0000 (19:05 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 14 Feb 2024 17:05:58 +0000 (19:05 +0200)
src/liblzma/rangecoder/range_decoder.h

index ddac10609c05b339071026093ad42f914c2444d9..4c09eeaefe56fcaf6d708c6d42a09e848eed18a4 100644 (file)
@@ -878,7 +878,7 @@ do { \
        uint32_t t0; \
        uint32_t t1; \
        uint32_t t_prob; \
-       uint32_t t_match_byte = (match_byte_value) << 1; \
+       uint32_t t_match_byte = (uint32_t)(match_byte_value) << 1; \
        uint32_t t_match_bit = t_match_byte; \
        uint32_t t_offset = 0x100; \
        symbol = 1; \