mirror of https://github.com/quasar/Quasar.git
parent
4c4cde446d
commit
9520cd70ff
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue