mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix downloading videos of size > INT_MAX to disk.
This commit is contained in:
parent
c8c3f43853
commit
184ebc865c
1 changed files with 1 additions and 1 deletions
|
@ -994,7 +994,7 @@ void Reader::checkForDownloaderChange(int checkItemsCount) {
|
||||||
const auto changed = std::adjacent_find(
|
const auto changed = std::adjacent_find(
|
||||||
end - checkItemsCount,
|
end - checkItemsCount,
|
||||||
end,
|
end,
|
||||||
[](int first, int second) { return (second <= first); });
|
[](uint32 first, uint32 second) { return (second <= first); });
|
||||||
if (changed != end) {
|
if (changed != end) {
|
||||||
_offsetsForDownloader.erase(
|
_offsetsForDownloader.erase(
|
||||||
begin(_offsetsForDownloader),
|
begin(_offsetsForDownloader),
|
||||||
|
|
Loading…
Add table
Reference in a new issue