mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Cast to proper types.
This commit is contained in:
parent
8ce41b3543
commit
281dcf7c1f
@ -437,7 +437,7 @@ static BroadcastMessage& GetBroadcastMessage( const char* procname, size_t pnsz,
|
||||
memcpy( msg.programName, procname, pnsz );
|
||||
memset( msg.programName + pnsz, 0, WelcomeMessageProgramNameSize - pnsz );
|
||||
|
||||
len = offsetof( BroadcastMessage, programName ) + pnsz + 1;
|
||||
len = int( offsetof( BroadcastMessage, programName ) + pnsz + 1 );
|
||||
return msg;
|
||||
}
|
||||
|
||||
@ -1157,7 +1157,7 @@ void Profiler::Worker()
|
||||
{
|
||||
lastBroadcast = t;
|
||||
const auto ts = std::chrono::duration_cast<std::chrono::seconds>( std::chrono::system_clock::now().time_since_epoch() ).count();
|
||||
broadcastMsg.activeTime = ts - m_epoch;
|
||||
broadcastMsg.activeTime = uint32_t( ts - m_epoch );
|
||||
m_broadcast->Send( 8086, &broadcastMsg, broadcastLen );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user