Longer integer for chunk math. Int32 overflow when calculating file diff

This commit is contained in:
Ryan Kistner committed 2015-06-12 20:52:15 -06:00
1 parent 52d45da141
commit 5cf8c66f06
1 file changed
+1 -1
+1 -1
View File
@@ -792,7 +792,7 @@ namespace DepotDownloader
}
else
{
size_downloaded += (file.TotalSize - (ulong)neededChunks.Select(x => (int)x.UncompressedLength).Sum());
size_downloaded += (file.TotalSize - (ulong)neededChunks.Select(x => (long)x.UncompressedLength).Sum());
}
}