mirror of
https://github.com/SteamRE/DepotDownloader.git
synced 2026-10-19 15:51:50 +00:00
Longer integer for chunk math. Int32 overflow when calculating file diff
This commit is contained in:
1 parent
52d45da141
commit
5cf8c66f06
1 file changed
+1
-1
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user