Fix failing test, I don't understand how

See #122 for details
This commit is contained in:
Russell Brown 2018-03-15 11:09:28 +00:00
parent cb8fe0c2d3
commit d487c1bc51

View file

@ -1519,7 +1519,7 @@ crc_check_slot(FullBin) ->
PosBL:32/integer, PosBL:32/integer,
CRC32H:32/integer, CRC32H:32/integer,
Rest/binary>> = FullBin, Rest/binary>> = FullBin,
PosBL0 = min(PosBL, byte_size(FullBin) - 3), PosBL0 = min(PosBL, byte_size(FullBin) - 12),
% If the position has been bit-flipped to beyond the maximum paossible % If the position has been bit-flipped to beyond the maximum paossible
% length, use the maximum possible length % length, use the maximum possible length
<<Header:PosBL0/binary, Blocks/binary>> = Rest, <<Header:PosBL0/binary, Blocks/binary>> = Rest,