mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Fix build with Xcode.
This commit is contained in:
parent
1f1e543df7
commit
16069db3e6
1 changed files with 4 additions and 4 deletions
|
@ -597,8 +597,8 @@ void Stories::loadAround(FullStoryId id) {
|
|||
}
|
||||
const auto ignore = [&] {
|
||||
const auto side = kIgnorePreloadAroundIfLoaded;
|
||||
const auto left = ranges::min(j - begin(i->ids), side);
|
||||
const auto right = ranges::min(end(i->ids) - j, side);
|
||||
const auto left = ranges::min(int(j - begin(i->ids)), side);
|
||||
const auto right = ranges::min(int(end(i->ids) - j), side);
|
||||
for (auto k = j - left; k != j + right; ++k) {
|
||||
const auto maybeStory = lookup({ id.peer, *k });
|
||||
if (!maybeStory && maybeStory.error() == NoStory::Unknown) {
|
||||
|
@ -611,8 +611,8 @@ void Stories::loadAround(FullStoryId id) {
|
|||
return;
|
||||
}
|
||||
const auto side = kPreloadAroundCount;
|
||||
const auto left = ranges::min(j - begin(i->ids), side);
|
||||
const auto right = ranges::min(end(i->ids) - j, side);
|
||||
const auto left = ranges::min(int(j - begin(i->ids)), side);
|
||||
const auto right = ranges::min(int(end(i->ids) - j), side);
|
||||
const auto from = j - left;
|
||||
const auto till = j + right;
|
||||
for (auto k = from; k != till; ++k) {
|
||||
|
|
Loading…
Add table
Reference in a new issue