mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix downloading videos of size > INT_MAX to disk.
This commit is contained in:
@@ -994,7 +994,7 @@ void Reader::checkForDownloaderChange(int checkItemsCount) {
|
||||
const auto changed = std::adjacent_find(
|
||||
end - checkItemsCount,
|
||||
end,
|
||||
[](int first, int second) { return (second <= first); });
|
||||
[](uint32 first, uint32 second) { return (second <= first); });
|
||||
if (changed != end) {
|
||||
_offsetsForDownloader.erase(
|
||||
begin(_offsetsForDownloader),
|
||||
|
Reference in New Issue
Block a user