]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed g++ warnings
authorPrzemyslaw Skibinski <inikep@gmail.com>
Wed, 23 Nov 2016 17:17:18 +0000 (18:17 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Wed, 23 Nov 2016 17:17:18 +0000 (18:17 +0100)
lib/compress/zstd_opt.h

index ef17f7964b412dbbf54c6c9c19f857d81512f98f..f071c4f3020cecbd329f66b47ff7cc3a1d614d07 100644 (file)
@@ -420,7 +420,7 @@ void ZSTD_compressBlock_opt_generic(ZSTD_CCtx* ctx,
 
     /* init */
     ctx->nextToUpdate3 = ctx->nextToUpdate;
-    ZSTD_rescaleFreqs(seqStorePtr, src, srcSize);
+    ZSTD_rescaleFreqs(seqStorePtr, (const BYTE*)src, srcSize);
     ip += (ip==prefixStart);
     { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) rep[i]=ctx->rep[i]; }
 
@@ -675,7 +675,7 @@ void ZSTD_compressBlock_opt_extDict_generic(ZSTD_CCtx* ctx,
     { U32 i; for (i=0; i<ZSTD_REP_NUM; i++) rep[i]=ctx->rep[i]; }
 
     ctx->nextToUpdate3 = ctx->nextToUpdate;
-    ZSTD_rescaleFreqs(seqStorePtr, src, srcSize);
+    ZSTD_rescaleFreqs(seqStorePtr, (const BYTE*)src, srcSize);
     ip += (ip==prefixStart);
 
     /* Match Loop */