Browse Source

Update DeflaterEngine.cs

Fixed CodeStyle warnings
pull/2023/head
ratok-mk 5 years ago
committed by Koch, Michael
parent
commit
0b1cf1c511
  1. 3
      src/ImageSharp/Compression/Zlib/DeflaterEngine.cs

3
src/ImageSharp/Compression/Zlib/DeflaterEngine.cs

@ -484,13 +484,14 @@ namespace SixLabors.ImageSharp.Compression.Zlib
int matchStrt = this.matchStart; int matchStrt = this.matchStart;
int matchLength = this.matchLen; int matchLength = this.matchLen;
matchLength = Math.Max(matchLength, DeflaterConstants.MIN_MATCH - 1); matchLength = Math.Max(matchLength, DeflaterConstants.MIN_MATCH - 1);
this.matchLen = matchLength; this.matchLen = matchLength;
if (scan > scanMax - matchLength) if (scan > scanMax - matchLength)
{ {
return false; return false;
} }
int scanEndPosition = scan + matchLength; int scanEndPosition = scan + matchLength;
byte* pinnedWindow = this.pinnedWindowPointer; byte* pinnedWindow = this.pinnedWindowPointer;

Loading…
Cancel
Save