2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -21,7 +21,7 @@ namespace {
struct DnsEntry {
QString data;
int64 TTL = 0;
crl::time TTL = 0;
};
constexpr auto kSendNextTimeout = crl::time(1000);
@@ -155,8 +155,8 @@ std::vector<DnsEntry> ParseDnsResponse(
const auto ttlIt = object.find(qsl("TTL"));
const auto ttl = (ttlIt != object.constEnd())
? int64(std::round((*ttlIt).toDouble()))
: int64(0);
? crl::time(std::round((*ttlIt).toDouble()))
: crl::time(0);
result.push_back({ (*dataIt).toString(), ttl });
}
return result;