]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed minor cast warning
authorYann Collet <yann.collet.73@gmail.com>
Sun, 28 May 2017 00:09:06 +0000 (17:09 -0700)
committerYann Collet <yann.collet.73@gmail.com>
Sun, 28 May 2017 00:09:06 +0000 (17:09 -0700)
lib/compress/zstdmt_compress.c

index d41825e80282472932e7496a7fd573b943315198..0c6bc7249dfe753d405dee89ca8b637a2b69bae9 100644 (file)
@@ -314,7 +314,7 @@ ZSTDMT_CCtx* ZSTDMT_createCCtx(unsigned nbThreads)
     cctx->sectionSize = 0;
     cctx->overlapRLog = 3;
     cctx->factory = POOL_create(nbThreads, 1);
-    cctx->jobs = malloc(nbJobs * sizeof(*cctx->jobs));
+    cctx->jobs = (ZSTDMT_jobDescription*) malloc(nbJobs * sizeof(*cctx->jobs));
     cctx->buffPool = ZSTDMT_createBufferPool(nbThreads);
     cctx->cctxPool = ZSTDMT_createCCtxPool(nbThreads);
     if (!cctx->factory | !cctx->jobs | !cctx->buffPool | !cctx->cctxPool) {