diff options
Diffstat (limited to 'src/lib/compression/bzip2/bzip2.cpp')
-rw-r--r-- | src/lib/compression/bzip2/bzip2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/compression/bzip2/bzip2.cpp b/src/lib/compression/bzip2/bzip2.cpp index c9dfc2ce8..df6ad562f 100644 --- a/src/lib/compression/bzip2/bzip2.cpp +++ b/src/lib/compression/bzip2/bzip2.cpp @@ -18,7 +18,7 @@ namespace Botan { namespace { -class Bzip2_Stream : public Zlib_Style_Stream<bz_stream, char> +class Bzip2_Stream : public Zlib_Style_Stream<bz_stream, char, unsigned int> { public: Bzip2_Stream() @@ -46,7 +46,7 @@ class Bzip2_Compression_Stream final : public Bzip2_Stream if(block_size == 0 || block_size >= 9) block_size = 9; - int rc = BZ2_bzCompressInit(streamp(), block_size, 0, 0); + int rc = BZ2_bzCompressInit(streamp(), static_cast<unsigned int>(block_size), 0, 0); if(rc != BZ_OK) throw Compression_Error("BZ2_bzCompressInit", ErrorType::Bzip2Error, rc); |