Browse Source

Fix int overflow for totalRead

pull/5/head
Ionite 1 year ago
parent
commit
28e092d399
No known key found for this signature in database
  1. 2
      StabilityMatrix/Helper/FileTransfers.cs

2
StabilityMatrix/Helper/FileTransfers.cs

@ -40,7 +40,7 @@ public static class FileTransfers
private static async Task CopyStream(Stream from, Stream to, Action<long> progress)
{
var buffer = new byte[BufferSize];
var totalRead = 0;
long totalRead = 0;
while (totalRead < from.Length)
{

Loading…
Cancel
Save