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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user