]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed : Visual build compressing stdin with multi-threading enabled fails 891/head
authorYann Collet <cyan@fb.com>
Tue, 17 Oct 2017 21:07:43 +0000 (14:07 -0700)
committerYann Collet <cyan@fb.com>
Tue, 17 Oct 2017 21:07:43 +0000 (14:07 -0700)
commit32c9f715ae1532d4ea06ee5f811ed61c46e48d31
treea91c7ce42aac384bd41cc7c21547054bc3bfd27d
parent13bfe885aa72eadbeed15eaa86f36c265fa68c7b
fixed : Visual build compressing stdin with multi-threading enabled fails

It was multiple reasons stacked :
- Visual use a different code path, because ZSTD_NEWAPI is not defined
- fileio.c sends `0` as `pledgedSrcSize` to mean `ZSTD_CONTENTSIZE_UNKNOWN`  (fixed)
- ZSTDMT_resetCCtx() interpreted `0` as "empty" instead of "unknown" (fixed)
lib/compress/zstdmt_compress.c
lib/compress/zstdmt_compress.h
programs/Makefile
programs/fileio.c