From 160b6862646d95dfdbd73ab7f1031ede0f54992d Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 14 Feb 2024 19:05:58 +0200 Subject: liblzma: Silence a warning. --- src/liblzma/rangecoder/range_decoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/liblzma/rangecoder/range_decoder.h b/src/liblzma/rangecoder/range_decoder.h index ddac1060..4c09eeae 100644 --- a/src/liblzma/rangecoder/range_decoder.h +++ b/src/liblzma/rangecoder/range_decoder.h @@ -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; \ -- cgit v1.2.3