Skip to content

Commit 937d7c7

Browse files
committed
Fix arith-dynamic decoding of files stored using X_CAT
Fixes samtools#144 Authored-by: Michael Macias
1 parent 59e41b3 commit 937d7c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

htscodecs/arith_dynamic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ unsigned char *arith_compress_to(unsigned char *in, unsigned int in_size,
759759
}
760760
memcpy(out+c_meta_len, in, in_size);
761761
*out_size = in_size+c_meta_len;
762+
return out;
762763
}
763764

764765
if (order & X_STRIPE) {

0 commit comments

Comments
 (0)