aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-02-14 19:05:58 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-02-14 19:05:58 +0200
commit160b6862646d95dfdbd73ab7f1031ede0f54992d (patch)
treee42325fa17ece1350f1c2207c66c8ba43e45b240 /src
parentAdd NEWS for 5.5.2beta. (diff)
downloadxz-160b6862646d95dfdbd73ab7f1031ede0f54992d.tar.xz
liblzma: Silence a warning.
Diffstat (limited to 'src')
-rw-r--r--src/liblzma/rangecoder/range_decoder.h2
1 files changed, 1 insertions, 1 deletions
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; \