]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed minor conversion warning for C++ compilation mode
authorYann Collet <cyan@fb.com>
Sat, 27 Jan 2018 02:18:42 +0000 (18:18 -0800)
committerYann Collet <cyan@fb.com>
Sat, 27 Jan 2018 02:18:42 +0000 (18:18 -0800)
lib/compress/zstdmt_compress.c

index 8650356910cf2dceb47b2c03b2c3012718ed48f8..72515edb8c81a0b87736680487fd783328d9bf55 100644 (file)
@@ -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;