Workaround MSVC 19.4 Internal Compiler Error.
GitOrigin-RevId: 8fcb018f353bbf1d68d2e0253d4472656d196845
This commit is contained in:
parent
45d7e5c906
commit
c41640df44
@ -250,4 +250,8 @@ void Global::add_location_access_hash(double latitude, double longitude, int64 a
|
||||
location_access_hashes_[get_location_key(latitude, longitude)] = access_hash;
|
||||
}
|
||||
|
||||
double get_server_time() {
|
||||
return G()->server_time();
|
||||
}
|
||||
|
||||
} // namespace td
|
||||
|
@ -434,4 +434,6 @@ inline Global *G_impl(const char *file, int line) {
|
||||
return static_cast<Global *>(context);
|
||||
}
|
||||
|
||||
double get_server_time();
|
||||
|
||||
} // namespace td
|
||||
|
@ -36,13 +36,12 @@ inline Promise<Unit> get_erase_logevent_promise(uint64 logevent_id, Promise<Unit
|
||||
|
||||
template <class StorerT>
|
||||
void store_time(double time_at, StorerT &storer) {
|
||||
double server_time = storer.context()->server_time();
|
||||
if (time_at == 0) {
|
||||
store(-1.0, storer);
|
||||
} else {
|
||||
double time_left = max(time_at - Time::now(), 0.0);
|
||||
store(time_left, storer);
|
||||
store(server_time, storer);
|
||||
store(get_server_time(), storer);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user