From 173724c5392f60340d5fc29da0ae254a4d83ccdf Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 21 Apr 2024 02:58:20 +0300 Subject: [PATCH] Explicitly cast notify period to double. --- td/telegram/UpdatesManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index 43cda1eef..76fad9243 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -1789,7 +1789,8 @@ void UpdatesManager::notify_speed_limited(bool is_upload) { return; } next_notify_speed_limited_[is_upload] = - Time::now() + td_->option_manager_->get_option_integer("upload_premium_speedup_notify_period"); + Time::now() + + static_cast(td_->option_manager_->get_option_integer("upload_premium_speedup_notify_period")); send_closure(G()->td(), &Td::send_update, td_api::make_object(is_upload)); }