Skip to content

Commit

Permalink
Add default value to decompress() so it works like the other function…
Browse files Browse the repository at this point in the history
…s in sibling classes.
  • Loading branch information
tmaklin committed Apr 22, 2022
1 parent 0bb0a2d commit f5f34e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/bz_stream_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f5f34e0

Please sign in to comment.