Skip to content

Commit

Permalink
fix sbyte cast breaking comparison logic
Browse files Browse the repository at this point in the history
  • Loading branch information
laimis authored and synhershko committed Jan 7, 2015
1 parent e6f76bb commit bd5a842
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public override byte[] Test(byte[] decompressed)
int matchLen = token & 0x0F;
if (matchLen == 0x0F)
{
while (compressed[off] == unchecked((sbyte)0xFF))
while (compressed[off] == 0xFF)
{
matchLen += 0xFF;
++off;
Expand Down

0 comments on commit bd5a842

Please sign in to comment.