aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_ppmd7.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_ppmd7.c')
-rw-r--r--libarchive/archive_ppmd7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_ppmd7.c b/libarchive/archive_ppmd7.c
index d0bacc68cd7c..4029395b4c7f 100644
--- a/libarchive/archive_ppmd7.c
+++ b/libarchive/archive_ppmd7.c
@@ -1000,7 +1000,7 @@ static void RangeEnc_ShiftLow(CPpmd7z_RangeEnc *p)
static void RangeEnc_Encode(CPpmd7z_RangeEnc *p, UInt32 start, UInt32 size, UInt32 total)
{
- p->Low += start * (p->Range /= total);
+ p->Low += (UInt64)start * (UInt64)(p->Range /= total);
p->Range *= size;
while (p->Range < kTopValue)
{