mirror of
https://github.com/facebook/zstd.git
synced 2025-11-28 23:23:59 +03:00
Fix cSize calculation for noCompressBlocks
This commit is contained in:
@@ -433,6 +433,7 @@ MEM_STATIC size_t ZSTD_noCompressBlock (void* dst, size_t dstCapacity, const voi
|
||||
MEM_writeLE24(dst, cBlockHeader24);
|
||||
ZSTD_memcpy((BYTE*)dst + ZSTD_blockHeaderSize, src, srcSize);
|
||||
DEBUGLOG(4, "nocompress: %u", ZSTD_blockHeaderSize + srcSize);
|
||||
DEBUGLOG(4, "nocompress header: %u", cBlockHeader24);
|
||||
return ZSTD_blockHeaderSize + srcSize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user