Browse Source

Replace Guard with DebugGuard in FastSLog2Slow

pull/1805/head
Brian Popow 5 years ago
parent
commit
fd07436736
  1. 2
      src/ImageSharp/Formats/Webp/Lossless/LosslessUtils.cs

2
src/ImageSharp/Formats/Webp/Lossless/LosslessUtils.cs

@ -780,7 +780,7 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless
private static float FastSLog2Slow(uint v) private static float FastSLog2Slow(uint v)
{ {
Guard.MustBeGreaterThanOrEqualTo(v, LogLookupIdxMax, nameof(v)); DebugGuard.MustBeGreaterThanOrEqualTo<uint>(v, LogLookupIdxMax, nameof(v));
if (v < ApproxLogWithCorrectionMax) if (v < ApproxLogWithCorrectionMax)
{ {
int logCnt = 0; int logCnt = 0;

Loading…
Cancel
Save