From 47f5a663508d2171e97d11b16b13e7ef38a7c496 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 20 Oct 2020 21:58:59 +0300 Subject: [PATCH] Fix build on macOS. --- .../SourceFiles/history/view/history_view_pinned_tracker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/view/history_view_pinned_tracker.cpp b/Telegram/SourceFiles/history/view/history_view_pinned_tracker.cpp index 5a3673181..f2aee7419 100644 --- a/Telegram/SourceFiles/history/view/history_view_pinned_tracker.cpp +++ b/Telegram/SourceFiles/history/view/history_view_pinned_tracker.cpp @@ -82,8 +82,8 @@ void PinnedTracker::setupViewer(not_null data) { ) | rpl::start_with_next([=](const Data::PinnedAroundId &snapshot) { const auto i = ranges::lower_bound(snapshot.ids, _aroundId); const auto empty = snapshot.ids.empty(); - const auto before = (i - begin(snapshot.ids)); - const auto after = (end(snapshot.ids) - i); + const auto before = int(i - begin(snapshot.ids)); + const auto after = int(end(snapshot.ids) - i); if (snapshot.ids.empty()) { _current = PinnedId(); return;