Browse Source

Update src/ImageSharp/Memory/Buffer2D{T}.cs

Co-authored-by: Anton Firszov <antonfir@gmail.com>
pull/2327/head
Stefan Nikolei 3 years ago
committed by GitHub
parent
commit
6e70477cf2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ImageSharp/Memory/Buffer2D{T}.cs

2
src/ImageSharp/Memory/Buffer2D{T}.cs

@ -138,7 +138,7 @@ public sealed class Buffer2D<T> : IDisposable
{
DebugGuard.MustBeGreaterThanOrEqualTo(y, 0, nameof(y));
DebugGuard.MustBeLessThan(y, this.Height, nameof(y));
return this.FastMemoryGroup.View!.GetBoundedMemorySlice(y * (long)this.Width, this.Width);
return this.FastMemoryGroup.View.GetBoundedMemorySlice(y * (long)this.Width, this.Width);
}
/// <summary>

Loading…
Cancel
Save