]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Explicitly convert scratchBuffer to unsigned* 646/head
authorNick Terrell <terrelln@fb.com>
Tue, 4 Apr 2017 23:35:31 +0000 (16:35 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 4 Apr 2017 23:35:31 +0000 (16:35 -0700)
lib/compress/fse_compress.c

index 0b3b24286ac70dca5f0fea53f8421cc4b1da99ad..26e8052ddccea805f5316016507b788c1bf3e8d6 100644 (file)
@@ -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 */