Skip to content

Commit

Permalink
Correct resharper auto-clean mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
matt40k committed Dec 16, 2014
1 parent bc2bd23 commit da5868f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions TidyBackups/SharpZipLib/Zip/Compression/InflaterHuffmanTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private void BuildTree(byte[] codeLengths)

var code = 0;
var treeSize = 512;
for (var bits = 1; bits <= MAX_BITLEN; bits++)
for (int bits = 1; bits <= MAX_BITLEN; bits++)
{
nextCode[bits] = code;
code += blCount[bits] << (16 - bits);
Expand All @@ -160,7 +160,7 @@ private void BuildTree(byte[] codeLengths)
*/
tree = new short[treeSize];
var treePtr = 512;
for (var bits = MAX_BITLEN; bits >= 10; bits--)
for (int bits = MAX_BITLEN; bits >= 10; bits--)
{
var end = code & 0x1ff80;
code -= blCount[bits] << (16 - bits);
Expand Down Expand Up @@ -216,7 +216,7 @@ private void BuildTree(byte[] codeLengths)
/// </returns>
public int GetSymbol(StreamManipulator input)
{
int lookahead, symbol;
int lookahead, symbol, bits;
if ((lookahead = input.PeekBits(9)) >= 0)
{
if ((symbol = tree[lookahead]) >= 0)
Expand All @@ -232,7 +232,7 @@ public int GetSymbol(StreamManipulator input)
input.DropBits(symbol & 15);
return symbol >> 4;
}
var bits = input.AvailableBits;
bits = input.AvailableBits;
lookahead = input.PeekBits(bits);
symbol = tree[subtree | (lookahead >> 9)];
if ((symbol & 15) <= bits)
Expand All @@ -242,7 +242,7 @@ public int GetSymbol(StreamManipulator input)
}
return -1;
}
var bits = input.AvailableBits;
bits = input.AvailableBits;
lookahead = input.PeekBits(bits);
symbol = tree[lookahead];
if (symbol >= 0 && (symbol & 15) <= bits)
Expand Down

0 comments on commit da5868f

Please sign in to comment.