diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 08d09aa49..732f39d31 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -3530,11 +3530,12 @@ ZSTD_CDict* ZSTD_createCDict_advanced(const void* dictBuffer, size_t dictSize, } -ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2(const void* dict, size_t dictSize, - ZSTD_dictLoadMethod_e dictLoadMethod, - ZSTD_dictContentType_e dictContentType, - ZSTD_CCtx_params* cctxParams, - ZSTD_customMem customMem) +ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2( + const void* dict, size_t dictSize, + ZSTD_dictLoadMethod_e dictLoadMethod, + ZSTD_dictContentType_e dictContentType, + const ZSTD_CCtx_params* cctxParams, + ZSTD_customMem customMem) { int const dedicatedDictSearch = cctxParams->enableDedicatedDictSearch && ZSTD_dedicatedDictSearch_isSupported( diff --git a/lib/zstd.h b/lib/zstd.h index f8d5e84da..78c85dee4 100644 --- a/lib/zstd.h +++ b/lib/zstd.h @@ -1411,7 +1411,7 @@ ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2( const void* dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, - ZSTD_CCtx_params* cctxParams, + const ZSTD_CCtx_params* cctxParams, ZSTD_customMem customMem); ZSTDLIB_API ZSTD_DDict* ZSTD_createDDict_advanced(const void* dict, size_t dictSize,