From 3d9cf7acf29cbe73806738a80b3a56bb00a1fd46 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 29 Oct 2015 17:15:14 +0100 Subject: [PATCH] fix include --- lib/zstd.c | 2 +- lib/zstdhc.c | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/zstd.c b/lib/zstd.c index 5d5c8380c..7e69169a4 100644 --- a/lib/zstd.c +++ b/lib/zstd.c @@ -68,7 +68,7 @@ #include /* debug : printf */ #include "mem.h" /* low level memory routines */ #include "zstd_static.h" -#include "zstd_Ccommon.h" +#include "zstd_internal.h" #include "fse_static.h" #include "huff0.h" diff --git a/lib/zstdhc.c b/lib/zstdhc.c index 54d94fa0f..f3ad3a5a7 100644 --- a/lib/zstdhc.c +++ b/lib/zstdhc.c @@ -39,16 +39,10 @@ #include /* memset */ #include "zstdhc_static.h" #include "zstd_static.h" -#include "zstd_Ccommon.h" +#include "zstd_internal.h" #include "mem.h" -/* ************************************* -* Tuning Parameter -***************************************/ -static const U32 ZSTD_HC_compressionLevel_default = 9; - - /* ************************************* * Local Constants ***************************************/ @@ -451,7 +445,7 @@ size_t ZSTD_HC_compress_advanced (ZSTD_HC_CCtx* ctx, maxDstSize -= oSize; /* body (compression) */ - ctx->base = src; + ctx->base = (const BYTE*)src; op += ZSTD_HC_compress_generic (ctx, op, maxDstSize, src, srcSize); if(ZSTD_isError(oSize)) return oSize; op += oSize; -- 2.47.2