From: Yann Collet Date: Sat, 27 Jan 2018 02:18:42 +0000 (-0800) Subject: fixed minor conversion warning for C++ compilation mode X-Git-Tag: v1.3.4~1^2~67^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba0cd8cf78544ccbd7008b61014c25fc5e075bd0;p=thirdparty%2Fzstd.git fixed minor conversion warning for C++ compilation mode --- diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index 865035691..72515edb8 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -486,8 +486,8 @@ static ZSTDMT_jobDescription* ZSTDMT_createJobsTable(U32* nbJobsPtr, ZSTD_custom U32 const nbJobsLog2 = ZSTD_highbit32(*nbJobsPtr) + 1; U32 const nbJobs = 1 << nbJobsLog2; U32 jobNb; - ZSTDMT_jobDescription* const jobTable = ZSTD_calloc( - nbJobs * sizeof(ZSTDMT_jobDescription), cMem); + ZSTDMT_jobDescription* const jobTable = (ZSTDMT_jobDescription*) + ZSTD_calloc(nbJobs * sizeof(ZSTDMT_jobDescription), cMem); int initError = 0; if (jobTable==NULL) return NULL; *nbJobsPtr = nbJobs;