From 2bc2a0e459fc0eefc55dfd6da5121581bccf1c01 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 20 Mar 2021 16:03:58 +0400 Subject: [PATCH] Fix possible integer overflow. --- Telegram/SourceFiles/data/data_group_call.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_group_call.cpp b/Telegram/SourceFiles/data/data_group_call.cpp index b22e134d91..0c9fd8947b 100644 --- a/Telegram/SourceFiles/data/data_group_call.cpp +++ b/Telegram/SourceFiles/data/data_group_call.cpp @@ -659,7 +659,7 @@ void GroupCall::applyActiveUpdate( void GroupCall::checkFinishSpeakingByActive() { const auto now = crl::now(); - auto nearest = 0; + auto nearest = crl::time(0); auto stop = std::vector>(); for (auto i = begin(_speakingByActiveFinishes) ; i != end(_speakingByActiveFinishes);) {