lib/bio-bgzf/pack.rb in bio-bgzf-0.1.0 vs lib/bio-bgzf/pack.rb in bio-bgzf-0.1.1
- old
+ new
@@ -7,10 +7,10 @@
def pack(str, level=Zlib::BEST_COMPRESSION)
zs = Zlib::Deflate.new level, -15
cdata = zs.deflate str, Zlib::FINISH
zs.close
- crc32 = Zlib.crc32 cdata, 0
+ crc32 = Zlib.crc32 str, 0
isize = str.length
bsize = cdata.length + 19 + XLEN
array = [ ID1,