2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix build on GCC.

This commit is contained in:
John Preston
2019-03-01 18:41:10 +04:00
parent a8aa66d191
commit 8171828c2a
12 changed files with 38 additions and 26 deletions

View File

@@ -3248,7 +3248,7 @@ bool MainWidget::failDifference(const RPCError &error) {
}
void MainWidget::getDifferenceByPts() {
auto now = crl::now(), wait = 0LL;
auto now = crl::now(), wait = crl::time(0);
if (_getDifferenceTimeByPts) {
if (_getDifferenceTimeByPts > now) {
wait = _getDifferenceTimeByPts - now;
@@ -3273,7 +3273,7 @@ void MainWidget::getDifferenceByPts() {
}
void MainWidget::getDifferenceAfterFail() {
auto now = crl::now(), wait = 0LL;
auto now = crl::now(), wait = crl::time(0);
if (_getDifferenceTimeAfterFail) {
if (_getDifferenceTimeAfterFail > now) {
wait = _getDifferenceTimeAfterFail - now;