diff --git a/util/compression.h b/util/compression.h index 3e10aa6ba..6522a1f13 100644 --- a/util/compression.h +++ b/util/compression.h @@ -779,7 +779,8 @@ inline bool Zlib_Compress(const CompressionInfo& info, } // Get an upper bound on the compressed size. - size_t upper_bound = deflateBound(&_stream, length); + size_t upper_bound = + deflateBound(&_stream, static_cast(length)); output->resize(output_header_len + upper_bound); // Compress the input, and put compressed data in output.