Browse Source

Update src/ImageSharp/IO/BufferedReadStream.cs

Co-authored-by: Günther Foidl <gue@korporal.at>
pull/2267/head
James Jackson-South 3 years ago
committed by GitHub
parent
commit
4b71d25bff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/ImageSharp/IO/BufferedReadStream.cs

2
src/ImageSharp/IO/BufferedReadStream.cs

@ -141,7 +141,7 @@ internal sealed class BufferedReadStream : Stream
// Our buffer has been read.
// We need to refill and start again.
if (this.readBufferIndex < 0 || this.readBufferIndex > this.maxBufferIndex)
if ((uint)this.readBufferIndex > (uint)this.maxBufferIndex)
{
this.FillReadBuffer();
}

Loading…
Cancel
Save