Fix possible integer overflow.

This commit is contained in:
John Preston 2021-03-20 16:03:58 +04:00
parent 7cb4b4f8ab
commit 2bc2a0e459
1 changed files with 1 additions and 1 deletions

View File

@ -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<not_null<PeerData*>>();
for (auto i = begin(_speakingByActiveFinishes)
; i != end(_speakingByActiveFinishes);) {