Skip to content

Commit a1d7af6

Browse files
committed
Fix -Wincomplete-uni-patterns
1 parent f5cafba commit a1d7af6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Codec/Compression/Zlib/Internal.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,10 @@ decompressStreamST format params =
925925
if S.length chunk > 1
926926
then do
927927
-- have to handle the remaining data in this chunk
928-
x <- runStreamST resume zstate
929-
let (DecompressInputRequired next, zstate') = x
928+
(x, zstate') <- runStreamST resume zstate
929+
let next = case x of
930+
DecompressInputRequired n -> n
931+
_ -> error "checkHeaderSplit: unexpected result of runStreamST"
930932
(strm', zstate'') <- runStreamST (next (S.tail chunk)) zstate'
931933
go strm' zstate'' False
932934
else do

0 commit comments

Comments
 (0)