From 132111ab0582493e09898222b275d512719a92b0 Mon Sep 17 00:00:00 2001 From: James0124 Date: Wed, 9 Oct 2024 06:16:39 +0900 Subject: Fix build for clang-14 (#5235) Co-authored-by: Yong He --- source/core/slang-performance-profiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/slang-performance-profiler.cpp') diff --git a/source/core/slang-performance-profiler.cpp b/source/core/slang-performance-profiler.cpp index f08b4998d..b272c9e17 100644 --- a/source/core/slang-performance-profiler.cpp +++ b/source/core/slang-performance-profiler.cpp @@ -38,7 +38,7 @@ namespace Slang snprintf(buffer, sizeof(buffer), "[*] %30s", func.key); out << buffer << " \t"; auto milliseconds = std::chrono::duration_cast< std::chrono::milliseconds >(func.value.duration); - out << func.value.invocationCount << " \t" << milliseconds.count() << "ms\n"; + out << func.value.invocationCount << " \t" << static_cast(milliseconds.count()) << "ms\n"; } } virtual void clear() override -- cgit v1.2.3