Better integer casts.

GitOrigin-RevId: 3ae8b651f299dfe134ea5380891296cee44d01e9
This commit is contained in:
levlam 2019-12-24 16:36:14 +03:00
parent ab4ee8031a
commit 9dde153313
2 changed files with 5 additions and 3 deletions

View File

@ -17341,7 +17341,7 @@ Result<int32> MessagesManager::get_message_schedule_date(
switch (scheduling_state->get_id()) {
case td_api::messageSchedulingStateSendWhenOnline::ID:
return int32(SCHEDULE_WHEN_ONLINE_DATE);
return static_cast<int32>(SCHEDULE_WHEN_ONLINE_DATE);
case td_api::messageSchedulingStateSendAtDate::ID: {
auto send_at_date = td_api::move_object_as<td_api::messageSchedulingStateSendAtDate>(scheduling_state);
auto send_date = send_at_date->send_date_;

View File

@ -1065,11 +1065,13 @@ StickersManager::StickersManager(Td *td, ActorShared<> parent) : td_(td), parent
void StickersManager::start_up() {
// add animated emoji sticker set
if (G()->is_test_dc()) {
animated_emoji_sticker_set_id_ = StickerSetId(td::int64(1258816259751954));
int64 sticker_set_id_int = 1258816259751954;
animated_emoji_sticker_set_id_ = StickerSetId(sticker_set_id_int);
animated_emoji_sticker_set_access_hash_ = 4879754868529595811;
animated_emoji_sticker_set_name_ = "emojies";
} else {
animated_emoji_sticker_set_id_ = StickerSetId(td::int64(1258816259751983));
int64 sticker_set_id_int = 1258816259751983;
animated_emoji_sticker_set_id_ = StickerSetId(sticker_set_id_int);
animated_emoji_sticker_set_access_hash_ = 5100237018658464041;
animated_emoji_sticker_set_name_ = "animatedemojies";
}