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) ...@@ -460,11 +460,12 @@ function BDIO_parse!(fb::BDIOstream)
else else
islong = (mask = 1<<3; ihdr & mask == mask) islong = (mask = 1<<3; ihdr & mask == mask)
ifmt::Int32 = (ihdr & 0b11110000)>>>4 ifmt::Int32 = (ihdr & 0b11110000)>>>4
iuinfo::Int8 = Int8((ihdr & 0b111100000000)>>>8) iuinfo::Int8 = Int8((ihdr & 0b111100000000)>>>8)
if islong if islong
rpos = position(fb.io) + 4 rpos = position(fb.io) + 4
ihdr2 = read(fb.io, Int32) ihdr2 = read(fb.io, Int32)
rlen = ihdr>>>12 | ihdr2<<32 jlong = convert(Int64, ihdr2)
rlen = ihdr>>>12 | jlong<<32
else else
rpos = position(fb.io) rpos = position(fb.io)
rlen = ihdr>>>12 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