Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[CSL-585] Fix for attributes, fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeee committed Jan 15, 2017
1 parent 470b8e0 commit 7054661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pos/Data/Attributes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ getAttributes keyGetMapper (fromIntegral -> maxLen) initData = do
fail $ "Attributes: wrong totalLen " ++ show totalLen
++ " (maxLen=" ++ show maxLen ++ ")"
read1 <- G.bytesRead
let cond = orM [ G.isEmpty
, (\r -> r - read1 >= totalLen) <$> G.bytesRead ]
let cond = orM [ (\r -> r - read1 >= totalLen) <$> G.bytesRead
, G.isEmpty]
readWhileKnown dat = ifM cond (return dat) $ do
key <- G.lookAhead getWord8
case keyGetMapper key dat of
Expand Down

0 comments on commit 7054661

Please sign in to comment.