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

index e969fd2ca65c897b3e273d7bbce8bcc1067d275e..b6a6d46933bf9b842f17eb19161f200dc81fc807 100644 (file)
@@ -757,7 +757,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 */