Merge pull request #123 from martinsumner/bug/rdb/gh122

Fix failing test, I don't understand how
This commit is contained in:
Martin Sumner 2018-03-15 11:16:28 +00:00 committed by GitHub
commit 669a859d75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,