From 524daa45a57be8d74b023ef585f6d3e32a1d2b9d Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Sun, 7 Apr 2024 20:38:46 +0200 Subject: [PATCH] ppcexec.cpp: fix compilation with Apple Clang 10. --- cpu/ppc/ppcexec.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu/ppc/ppcexec.cpp b/cpu/ppc/ppcexec.cpp index 2c4511b..af8e8e6 100644 --- a/cpu/ppc/ppcexec.cpp +++ b/cpu/ppc/ppcexec.cpp @@ -277,9 +277,9 @@ void ppc_main_opcode() OpcodeGrabber[(ppc_cur_instruction >> 26) & 0x3F](); } -static long long now_ns() -{ - return duration_cast(std::chrono::high_resolution_clock::now().time_since_epoch()).count(); +static long long now_ns() { + return std::chrono::duration_cast( + std::chrono::high_resolution_clock::now().time_since_epoch()).count(); } uint64_t get_virt_time_ns()