diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 22:25:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:05:21 +0200 |
commit | d65936200a2756e6619a109fa6fa673b91df802e (patch) | |
tree | 80b6b6fc7ba9023cbe47290b8ae1bc5468a19bb1 /compat/timer.cpp | |
parent | 4046773c41ee3c0f65840828ab983cfd13451c85 (diff) |
modernize C++ syntax
No visible changes (hopefully).
Diffstat (limited to 'compat/timer.cpp')
-rw-r--r-- | compat/timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/timer.cpp b/compat/timer.cpp index 0e7fb362..dc9808b1 100644 --- a/compat/timer.cpp +++ b/compat/timer.cpp @@ -82,7 +82,7 @@ static void otr_clock_gettime(timespec* ts) (void) QueryPerformanceCounter(&d); using ll = long long; - const ll part = ll(std::roundl((d.QuadPart * 1000000000.L) / ll(freq.QuadPart))); + const auto part = ll(std::roundl((d.QuadPart * 1000000000.L) / ll(freq.QuadPart))); using t_s = decltype(ts->tv_sec); using t_ns = decltype(ts->tv_nsec); |