We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5cafba commit a1d7af6Copy full SHA for a1d7af6
Codec/Compression/Zlib/Internal.hs
@@ -925,8 +925,10 @@ decompressStreamST format params =
925
if S.length chunk > 1
926
then do
927
-- have to handle the remaining data in this chunk
928
- x <- runStreamST resume zstate
929
- let (DecompressInputRequired next, zstate') = x
+ (x, zstate') <- runStreamST resume zstate
+ let next = case x of
930
+ DecompressInputRequired n -> n
931
+ _ -> error "checkHeaderSplit: unexpected result of runStreamST"
932
(strm', zstate'') <- runStreamST (next (S.tail chunk)) zstate'
933
go strm' zstate'' False
934
else do
0 commit comments