From: W. Felix Handte Date: Sat, 9 Jun 2018 21:19:04 +0000 (-0400) Subject: Fix Cast Warning X-Git-Tag: v1.3.5~3^2~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d53200a846d831c5bbcc9e3933356c235d5e45c3;p=thirdparty%2Fzstd.git Fix Cast Warning --- diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index a63656dad..ca86c3e63 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -718,7 +718,7 @@ _storeSequence: && (MEM_read32(repMatch) == MEM_read32(ip)) ) { const BYTE* const repEnd2 = repIndex < prefixLowestIndex ? dictEnd : iend; matchLength = ZSTD_count_2segments(ip+4, repMatch+4, iend, repEnd2, prefixLowest) + 4; - offset = offset_2; offset_2 = offset_1; offset_1 = offset; /* swap offset_2 <=> offset_1 */ + offset = offset_2; offset_2 = offset_1; offset_1 = (U32)offset; /* swap offset_2 <=> offset_1 */ ZSTD_storeSeq(seqStore, 0, anchor, 0, matchLength-MINMATCH); ip += matchLength; anchor = ip;