Browse Source

Manually commit @gfoidl suggestion

pull/2267/head
James Jackson-South 4 years ago
parent
commit
b14622a339
  1. 2
      src/ImageSharp/IO/BufferedReadStream.cs

2
src/ImageSharp/IO/BufferedReadStream.cs

@ -172,7 +172,7 @@ internal sealed class BufferedReadStream : Stream
// Too big for remaining buffer but less than entire buffer length
// Copy to buffer then read from there.
if (this.readBufferIndex < 0 || (this.readBufferIndex > this.BufferSize - count))
if ((uint)this.readBufferIndex > (uint)(this.BufferSize - count))
{
return this.ReadToBufferViaCopySlow(buffer);
}

Loading…
Cancel
Save