From 7d8432bbec5e526a5b11920e24197871c3b280ce Mon Sep 17 00:00:00 2001 From: David Briscoe Date: Fri, 16 Feb 2024 16:22:50 -0800 Subject: [PATCH] Cast thread id to uint32_t Fix MSVC Warning C4244: 'argument': conversion from 'uint64_t' to 'uint32_t', possible loss of data We only store 32 bit thread ids in ThreadNameData. Trying to follow existing style instead of static_cast. --- public/client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index a764e5e1..ebdc83dc 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -3442,7 +3442,7 @@ bool Profiler::HandleServerQuery() } else { - SendString( ptr, GetThreadName( ptr ), QueueType::ThreadName ); + SendString( ptr, GetThreadName( (uint32_t)ptr ), QueueType::ThreadName ); } break; case ServerQuerySourceLocation: