summaryrefslogtreecommitdiffstats
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-07-17 22:40:47 +0200
committerGitHub <noreply@github.com>2017-07-17 22:40:47 +0200
commit869135515818550093a10f896df3cb3434c527de (patch)
treefc9d00a476cc918cdfc10fc619093d0a494d8daa /core/variant_call.cpp
parent4680effcb3a204c94cdf84e074d1852f94e25ace (diff)
parent0f765c86e5b7fc771f5559b9e46999bd8e6239aa (diff)
downloadredot-engine-869135515818550093a10f896df3cb3434c527de.tar.gz
Merge pull request #9634 from vnen/gzip-compression
Add GZIP compression support
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 6936a362e1..4a806aec6c 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -516,7 +516,7 @@ struct _VariantCall {
PoolByteArray compressed;
Compression::Mode mode = (Compression::Mode)(int)(*p_args[0]);
- compressed.resize(Compression::get_max_compressed_buffer_size(ba->size()));
+ compressed.resize(Compression::get_max_compressed_buffer_size(ba->size(), mode));
int result = Compression::compress(compressed.write().ptr(), ba->read().ptr(), ba->size(), mode);
result = result >= 0 ? result : 0;