From 9520cd70ffff747e04ce34c606ebfca1043929c7 Mon Sep 17 00:00:00 2001 From: MaxXor Date: Sat, 8 Aug 2020 13:14:55 +0200 Subject: [PATCH] Fix file transfers of files larger than 2 GB Closes #857, #841 --- Quasar.Common/IO/FileSplit.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quasar.Common/IO/FileSplit.cs b/Quasar.Common/IO/FileSplit.cs index c06ef525..495b419e 100644 --- a/Quasar.Common/IO/FileSplit.cs +++ b/Quasar.Common/IO/FileSplit.cs @@ -92,7 +92,7 @@ public FileChunk ReadChunk(long offset) /// An object that can be used to iterate through the file chunks. public IEnumerator GetEnumerator() { - for (int currentChunk = 0; currentChunk <= _fileStream.Length / MaxChunkSize; currentChunk++) + for (long currentChunk = 0; currentChunk <= _fileStream.Length / MaxChunkSize; currentChunk++) { yield return ReadChunk(currentChunk * MaxChunkSize); }