mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Use static assert where static assert is due.
This commit is contained in:
parent
fefcbc6c35
commit
a63f214964
@ -71,7 +71,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
||||
}
|
||||
else
|
||||
{
|
||||
assert( sizeof( m_delay ) == sizeof( hdr ) );
|
||||
static_assert( sizeof( m_delay ) == sizeof( hdr ), "Size mismatch" );
|
||||
memcpy( &m_delay, hdr, sizeof( m_delay ) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user