Commit 26d3143e authored by Alberto Ramos's avatar Alberto Ramos

Bug in reading long records

parent 5d6b2f9d
......@@ -460,11 +460,12 @@ function BDIO_parse!(fb::BDIOstream)
else
islong = (mask = 1<<3; ihdr & mask == mask)
ifmt::Int32 = (ihdr & 0b11110000)>>>4
iuinfo::Int8 = Int8((ihdr & 0b111100000000)>>>8)
iuinfo::Int8 = Int8((ihdr & 0b111100000000)>>>8)
if islong
rpos = position(fb.io) + 4
ihdr2 = read(fb.io, Int32)
rlen = ihdr>>>12 | ihdr2<<32
jlong = convert(Int64, ihdr2)
rlen = ihdr>>>12 | jlong<<32
else
rpos = position(fb.io)
rlen = ihdr>>>12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment