From 77ba2b40e7a6b9a2bd559c41977938d3c6efbd97 Mon Sep 17 00:00:00 2001 From: Eladash <18193363+elad335@users.noreply.github.com> Date: Sun, 11 Feb 2024 22:17:50 +0200 Subject: [PATCH] Thread.cpp: Explicitly state difference type in thread_ctrl::wait_for_accurate --- Utilities/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 8e536c0541..162329cf79 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -2427,7 +2427,7 @@ void thread_ctrl::wait_for_accurate(u64 usec) break; } - usec = (until - current).count(); + usec = std::chrono::duration_cast(until - current).count(); } #endif }