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

Commit 7054661

Browse files
committed
[CSL-585] Fix for attributes, fixed
1 parent 470b8e0 commit 7054661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Pos/Data/Attributes.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ getAttributes keyGetMapper (fromIntegral -> maxLen) initData = do
7878
fail $ "Attributes: wrong totalLen " ++ show totalLen
7979
++ " (maxLen=" ++ show maxLen ++ ")"
8080
read1 <- G.bytesRead
81-
let cond = orM [ G.isEmpty
82-
, (\r -> r - read1 >= totalLen) <$> G.bytesRead ]
81+
let cond = orM [ (\r -> r - read1 >= totalLen) <$> G.bytesRead
82+
, G.isEmpty]
8383
readWhileKnown dat = ifM cond (return dat) $ do
8484
key <- G.lookAhead getWord8
8585
case keyGetMapper key dat of

0 commit comments

Comments
 (0)