summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-03-29 00:01:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-04-19 14:52:15 +0200
commit1da5fb05e750e8c74c88dcb8cd701ad0e9c2dd5d (patch)
tree4a117fa12c3be1a2f40f83143317042b720dad92 /compat
parent9bcab9fb4274c6e1aa1a2621dbfedf829e7fcfc5 (diff)
compat/timer: fix lupdate on number separator
Diffstat (limited to 'compat')
-rw-r--r--compat/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/timer.cpp b/compat/timer.cpp
index e68b6d8d..fdea185a 100644
--- a/compat/timer.cpp
+++ b/compat/timer.cpp
@@ -66,7 +66,7 @@ void Timer::gettime(timespec* state)
BOOL ret = QueryPerformanceCounter(&d);
assert(ret && "QueryPerformanceCounter failed");
- constexpr int nsec = 1'000'000'000;
+ constexpr int nsec = 1'000'000 * 1000;
state->tv_sec = (time_t)(d.QuadPart/freq);
state->tv_nsec = (decltype(state->tv_nsec))(d.QuadPart % freq * nsec / freq);
}