Fix file transfers of files larger than 2 GB

Closes #857,  #841
This commit is contained in:
MaxXor 2020-08-08 13:14:55 +02:00
parent 4c4cde446d
commit 9520cd70ff
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public FileChunk ReadChunk(long offset)
/// <returns>An <see cref="IEnumerator"/> object that can be used to iterate through the file chunks.</returns>
public IEnumerator<FileChunk> GetEnumerator()
{
for (int currentChunk = 0; currentChunk <= _fileStream.Length / MaxChunkSize; currentChunk++)
for (long currentChunk = 0; currentChunk <= _fileStream.Length / MaxChunkSize; currentChunk++)
{
yield return ReadChunk(currentChunk * MaxChunkSize);
}