diff --git a/SharpCompress/Compressor/Deflate/Inflate.cs b/SharpCompress/Compressor/Deflate/Inflate.cs index dcfcddbf..587a69aa 100644 --- a/SharpCompress/Compressor/Deflate/Inflate.cs +++ b/SharpCompress/Compressor/Deflate/Inflate.cs @@ -895,11 +895,11 @@ namespace SharpCompress.Compressor.Deflate r = ZlibConstants.Z_OK; else { - // Handling missing trailing bit(s) - var tmp_tindex = (tree_index + (b & InternalInflateConstants.InflateMask[k]))*3; - if (k >= tree[tmp_tindex + 1]) - break; - + // Handling missing trailing bit(s) + var tmp_tindex = (tree_index + (b & InternalInflateConstants.InflateMask[k]))*3; + if (k >= tree[tmp_tindex + 1]) + break; + blocks.bitb = b; blocks.bitk = k; z.AvailableBytesIn = n; @@ -1003,10 +1003,10 @@ namespace SharpCompress.Compressor.Deflate r = ZlibConstants.Z_OK; else { - // Handling missing trailing bit(s) - var tmp_tindex = (tree_index + (b & InternalInflateConstants.InflateMask[k]))*3; - if (k >= tree[tmp_tindex + 1]) - break; + // Handling missing trailing bit(s) + var tmp_tindex = (tree_index + (b & InternalInflateConstants.InflateMask[k]))*3; + if (k >= tree[tmp_tindex + 1]) + break; blocks.bitb = b; blocks.bitk = k;