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.
This commit is contained in:
David Briscoe 2024-02-16 16:22:50 -08:00
parent 5ce238e9b4
commit 7d8432bbec

View File

@ -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: