Use better type in static_cast.
GitOrigin-RevId: 6babad6d6340d428cf73cbbe914c3e1fd4b30040
This commit is contained in:
parent
2a1717cc18
commit
aefab830b1
@ -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_online_member_count(chat_full, chat_id, false);
|
||||||
update_chat_full(chat_full, chat_id);
|
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);
|
repair_chat_participants(chat_id);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -2095,10 +2095,10 @@ StickerSetId StickersManager::on_get_messages_sticker_set(StickerSetId sticker_s
|
|||||||
document_id_to_sticker_id.insert(sticker_id);
|
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()
|
LOG(ERROR) << "Wrong sticker set size " << s->sticker_count << " instead of " << s->sticker_ids.size()
|
||||||
<< " specified in " << set_id << " from " << source;
|
<< " 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) {
|
if (!is_bot) {
|
||||||
|
Reference in New Issue
Block a user