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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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(); |
|
|
|
} |
|
|
|
|