Constifying, malloc check and naming nit

This commit is contained in:
Bimba Shrestha
2019-12-17 17:16:51 -08:00
parent 989ce13e19
commit 56415efc76
2 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -2568,7 +2568,7 @@ static size_t ZSTD_compress_frameChunk (ZSTD_CCtx* cctx,
* greater than the optimistic number of blocks we still have remaining.
* This might be UNset when data is uncompressable and we're streaming. */
int enoughDstCapacityForNoCompressSuperBlocks =
const int enoughDstCapacityForNoCompressSuperBlocks =
(dstCapacity / (blockSize + 7 /* header + checksum */)) > (srcSize / blockSize);
assert(cctx->appliedParams.cParams.windowLog <= ZSTD_WINDOWLOG_MAX);