Beta version 5.5.8: Fix build with Xcode.

This commit is contained in:
John Preston 2024-10-03 12:13:33 +04:00
parent 15fcb73e19
commit 335095a332
2 changed files with 1 additions and 2 deletions

View file

@ -348,7 +348,7 @@ void SponsoredMessages::append(
_session->data().nextLocalMessageId());
const auto fileOrigin = FileOrigin(); // No way to refresh in ads.
static const auto kFlaggedPreload = ((MediaPreload*)nullptr) + 1;
static const auto kFlaggedPreload = ((MediaPreload*)quintptr(0x01));
const auto preloaded = [=] {
const auto i = _data.find(history);
if (i == end(_data)) {

View file

@ -123,7 +123,6 @@ void VideoPreload::load() {
callDone();
return;
}
const auto key = _video->bigFileBaseCacheKey();
const auto prefix = ChoosePreloadPrefix(_video);
Assert(prefix > 0 && prefix <= _video->size);
const auto part = Storage::kDownloadPartSize;