From 1e944a4126b82880708f41b7a6c477d57e781e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommi=20M=C3=A4klin?= Date: Fri, 22 Apr 2022 21:41:44 +0300 Subject: [PATCH] Add default value to decompress(). --- include/lzma_stream_wrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lzma_stream_wrapper.hpp b/include/lzma_stream_wrapper.hpp index e54927c..82dd753 100644 --- a/include/lzma_stream_wrapper.hpp +++ b/include/lzma_stream_wrapper.hpp @@ -84,7 +84,7 @@ class lzma_stream_wrapper : public lzma_stream, public stream_wrapper { } ~lzma_stream_wrapper() { lzma_end(this); } - int decompress(const int) override { + int decompress(const int = 0) override { ret = lzma_code(this, LZMA_RUN); if (ret != LZMA_OK && ret != LZMA_STREAM_END && ret) throw lzmaException(ret); return (int)ret;