Fix possible integer overflow.
This commit is contained in:
parent
7cb4b4f8ab
commit
2bc2a0e459
|
@ -659,7 +659,7 @@ void GroupCall::applyActiveUpdate(
|
||||||
|
|
||||||
void GroupCall::checkFinishSpeakingByActive() {
|
void GroupCall::checkFinishSpeakingByActive() {
|
||||||
const auto now = crl::now();
|
const auto now = crl::now();
|
||||||
auto nearest = 0;
|
auto nearest = crl::time(0);
|
||||||
auto stop = std::vector<not_null<PeerData*>>();
|
auto stop = std::vector<not_null<PeerData*>>();
|
||||||
for (auto i = begin(_speakingByActiveFinishes)
|
for (auto i = begin(_speakingByActiveFinishes)
|
||||||
; i != end(_speakingByActiveFinishes);) {
|
; i != end(_speakingByActiveFinishes);) {
|
||||||
|
|
Loading…
Reference in New Issue