Fix build on macOS.

This commit is contained in:
John Preston 2020-10-20 21:58:59 +03:00
parent d742fa32de
commit 47f5a66350

View file

@ -82,8 +82,8 @@ void PinnedTracker::setupViewer(not_null<Data::PinnedMessages*> 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;