From: Nick Terrell Date: Tue, 4 Apr 2017 23:35:31 +0000 (-0700) Subject: Explicitly convert scratchBuffer to unsigned* X-Git-Tag: v1.2.0^2~59^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F646%2Fhead;p=thirdparty%2Fzstd.git Explicitly convert scratchBuffer to unsigned* --- diff --git a/lib/compress/fse_compress.c b/lib/compress/fse_compress.c index 0b3b24286..26e8052dd 100644 --- a/lib/compress/fse_compress.c +++ b/lib/compress/fse_compress.c @@ -808,7 +808,7 @@ size_t FSE_compress_wksp (void* dst, size_t dstSize, const void* src, size_t src if (!tableLog) tableLog = FSE_DEFAULT_TABLELOG; /* Scan input and build symbol stats */ - { CHECK_V_F(maxCount, FSE_count_wksp(count, &maxSymbolValue, src, srcSize, scratchBuffer) ); + { CHECK_V_F(maxCount, FSE_count_wksp(count, &maxSymbolValue, src, srcSize, (unsigned*)scratchBuffer) ); if (maxCount == srcSize) return 1; /* only a single symbol in src : rle */ if (maxCount == 1) return 0; /* each symbol present maximum once => not compressible */ if (maxCount < (srcSize >> 7)) return 0; /* Heuristic : not compressible enough */