From 5ba1093ddc24f41f2f4179aeb8e2c8e86401af8c Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 4 Feb 2016 19:19:08 -0600 Subject: [PATCH] lzms_common.h: add cast needed if sizeof(int) > sizeof(u32) --- include/wimlib/lzms_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wimlib/lzms_common.h b/include/wimlib/lzms_common.h index 56e35110..6db35b77 100644 --- a/include/wimlib/lzms_common.h +++ b/include/wimlib/lzms_common.h @@ -119,7 +119,7 @@ lzms_get_probability(const struct lzms_probability_entry *prob_entry) * if (prob == 0) * prob++; */ - prob += (prob - 1) >> 31; + prob += (u32)(prob - 1) >> 31; /* * if (prob == LZMS_PROBABILITY_DENOMINATOR) -- 2.43.0