From f5f34e02682a1eb281fbca7363b14def37800ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommi=20M=C3=A4klin?= Date: Fri, 22 Apr 2022 21:32:45 +0300 Subject: [PATCH] Add default value to decompress() so it works like the other functions in sibling classes. --- include/bz_stream_wrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bz_stream_wrapper.hpp b/include/bz_stream_wrapper.hpp index de5f355..e465686 100644 --- a/include/bz_stream_wrapper.hpp +++ b/include/bz_stream_wrapper.hpp @@ -92,7 +92,7 @@ class bz_stream_wrapper : public bz_stream, public stream_wrapper { } } - int decompress(const int) override { + int decompress(const int = 0) override { ret = BZ2_bzDecompress(this); if (ret != BZ_OK && ret != BZ_STREAM_END) throw bzException(ret); return ret;