summaryrefslogtreecommitdiffstats
path: root/liblzma/lzma/fastpos.h
diff options
context:
space:
mode:
Diffstat (limited to 'liblzma/lzma/fastpos.h')
-rw-r--r--liblzma/lzma/fastpos.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/liblzma/lzma/fastpos.h b/liblzma/lzma/fastpos.h
index a3feea5..cba442c 100644
--- a/liblzma/lzma/fastpos.h
+++ b/liblzma/lzma/fastpos.h
@@ -101,7 +101,7 @@ extern const uint8_t lzma_fastpos[1 << FASTPOS_BITS];
(UINT32_C(1) << (FASTPOS_BITS + fastpos_shift(extra, n)))
#define fastpos_result(dist, extra, n) \
- lzma_fastpos[(dist) >> fastpos_shift(extra, n)] \
+ (uint32_t)(lzma_fastpos[(dist) >> fastpos_shift(extra, n)]) \
+ 2 * fastpos_shift(extra, n)