diff options
| author | James0124 <gladiatorrules22@gmail.com> | 2024-10-09 06:16:39 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-08 14:16:39 -0700 |
| commit | 132111ab0582493e09898222b275d512719a92b0 (patch) | |
| tree | 2990b62253edecdcec03089c1b9546a937c719ab /source/core | |
| parent | c42a9faad8d84f7bd05457d5f8e1fe45d6eecfa2 (diff) | |
Fix build for clang-14 (#5235)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-performance-profiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<uint64_t>(milliseconds.count()) << "ms\n"; } } virtual void clear() override |
