old-style cast

This commit is contained in:
Andrei Bodrov 2019-11-19 17:35:03 +03:00
parent a2b5989177
commit 9296f652d2

View File

@ -71,7 +71,7 @@ public:
if (method == DB::CompressionMethod::Gzip)
{
auto write_buf = std::make_unique<TWriteBuffer>(args...);
return std::make_unique<ZlibDeflatingWriteBuffer>(std::move(write_buf), method, (int) 1 /* compression level */);
return std::make_unique<ZlibDeflatingWriteBuffer>(std::move(write_buf), method, 1 /* compression level */);
}
return std::make_unique<TWriteBuffer>(args...);
}