Use better type in static_cast.

GitOrigin-RevId: 6babad6d6340d428cf73cbbe914c3e1fd4b30040
This commit is contained in:
levlam 2020-03-31 03:02:51 +03:00
parent 2a1717cc18
commit aefab830b1
2 changed files with 3 additions and 3 deletions

View File

@ -10606,7 +10606,7 @@ void ContactsManager::on_update_chat_delete_user(ChatId chat_id, UserId user_id,
update_chat_online_member_count(chat_full, chat_id, false);
update_chat_full(chat_full, chat_id);
if (static_cast<int>(chat_full->participants.size()) != c->participant_count) {
if (static_cast<int32>(chat_full->participants.size()) != c->participant_count) {
repair_chat_participants(chat_id);
}
return;

View File

@ -2095,10 +2095,10 @@ StickerSetId StickersManager::on_get_messages_sticker_set(StickerSetId sticker_s
document_id_to_sticker_id.insert(sticker_id);
}
}
if (static_cast<int>(s->sticker_ids.size()) != s->sticker_count) {
if (static_cast<int32>(s->sticker_ids.size()) != s->sticker_count) {
LOG(ERROR) << "Wrong sticker set size " << s->sticker_count << " instead of " << s->sticker_ids.size()
<< " specified in " << set_id << " from " << source;
s->sticker_count = static_cast<int>(s->sticker_ids.size());
s->sticker_count = static_cast<int32>(s->sticker_ids.size());
}
if (!is_bot) {