1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-01 09:47:01 +03:00

Fix invalid narrowing conversion to size_t

This commit is contained in:
Nick Terrell
2016-09-06 20:11:02 -07:00
parent b3ed23e18e
commit 823bf3d08d
2 changed files with 13 additions and 9 deletions

View File

@ -19,6 +19,7 @@
#undef ZSTD_STATIC_LINKING_ONLY
#include <cstddef>
#include <cstdint>
#include <memory>
namespace pzstd {
@ -52,7 +53,7 @@ void asyncCompressChunks(
WorkQueue<std::shared_ptr<BufferWorkQueue>>& chunks,
ThreadPool& executor,
FILE* fd,
std::size_t size,
std::uintmax_t size,
std::size_t numThreads,
ZSTD_parameters parameters);