diff options
| author | levlam <levlam@telegram.org> | 2023-07-06 20:55:02 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-07-06 20:55:02 +0300 |
| commit | 0f8de6c91d4b43ad14ba35a10729ba67277769e8 (patch) | |
| tree | 636b77f3cd36ab2fd9f8c614e488b66702e4ef47 /td/telegram/StoryInteractionInfo.cpp | |
| parent | 5130ec7760783c4303cbab8f4fc9b77580973581 (diff) | |
Fix warnings.
Diffstat (limited to 'td/telegram/StoryInteractionInfo.cpp')
| -rw-r--r-- | td/telegram/StoryInteractionInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/td/telegram/StoryInteractionInfo.cpp b/td/telegram/StoryInteractionInfo.cpp index f08e9ab8d..e5f6772e0 100644 --- a/td/telegram/StoryInteractionInfo.cpp +++ b/td/telegram/StoryInteractionInfo.cpp @@ -52,7 +52,8 @@ void StoryInteractionInfo::set_recent_viewer_user_ids(vector<UserId> &&user_ids) } bool StoryInteractionInfo::definitely_has_no_user(UserId user_id) const { - return !is_empty() && view_count_ <= MAX_RECENT_VIEWERS && !contains(recent_viewer_user_ids_, user_id); + return !is_empty() && view_count_ <= static_cast<int32>(MAX_RECENT_VIEWERS) && + !contains(recent_viewer_user_ids_, user_id); } td_api::object_ptr<td_api::storyInteractionInfo> StoryInteractionInfo::get_story_interaction_info_object(Td *td) const { |
