Browse Source

Fix missing braces

pull/1777/head
James Jackson-South 5 years ago
parent
commit
d2b205260e
  1. 2
      src/ImageSharp/Compression/Zlib/Adler32.cs
  2. 2
      src/ImageSharp/Compression/Zlib/Crc32.cs

2
src/ImageSharp/Compression/Zlib/Adler32.cs

@ -91,6 +91,7 @@ namespace SixLabors.ImageSharp.Compression.Zlib
int index = 0; int index = 0;
fixed (byte* bufferPtr = buffer) fixed (byte* bufferPtr = buffer)
{
fixed (byte* tapPtr = Tap1Tap2) fixed (byte* tapPtr = Tap1Tap2)
{ {
index += (int)blocks * BLOCK_SIZE; index += (int)blocks * BLOCK_SIZE;
@ -202,6 +203,7 @@ namespace SixLabors.ImageSharp.Compression.Zlib
return s1 | (s2 << 16); return s1 | (s2 << 16);
} }
} }
}
#endif #endif
[MethodImpl(InliningOptions.HotPath | InliningOptions.ShortMethod)] [MethodImpl(InliningOptions.HotPath | InliningOptions.ShortMethod)]

2
src/ImageSharp/Compression/Zlib/Crc32.cs

@ -83,6 +83,7 @@ namespace SixLabors.ImageSharp.Compression.Zlib
int length = chunksize; int length = chunksize;
fixed (byte* bufferPtr = buffer) fixed (byte* bufferPtr = buffer)
{
fixed (ulong* k05PolyPtr = K05Poly) fixed (ulong* k05PolyPtr = K05Poly)
{ {
byte* localBufferPtr = bufferPtr; byte* localBufferPtr = bufferPtr;
@ -196,6 +197,7 @@ namespace SixLabors.ImageSharp.Compression.Zlib
return buffer.Length - chunksize == 0 ? crc : CalculateScalar(crc, buffer.Slice(chunksize)); return buffer.Length - chunksize == 0 ? crc : CalculateScalar(crc, buffer.Slice(chunksize));
} }
} }
}
#endif #endif
[MethodImpl(InliningOptions.HotPath | InliningOptions.ShortMethod)] [MethodImpl(InliningOptions.HotPath | InliningOptions.ShortMethod)]

Loading…
Cancel
Save