Use static assert where static assert is due.

This commit is contained in:
Bartosz Taudul 2018-04-21 14:47:15 +02:00
parent fefcbc6c35
commit a63f214964

View File

@ -71,7 +71,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
} }
else else
{ {
assert( sizeof( m_delay ) == sizeof( hdr ) ); static_assert( sizeof( m_delay ) == sizeof( hdr ), "Size mismatch" );
memcpy( &m_delay, hdr, sizeof( m_delay ) ); memcpy( &m_delay, hdr, sizeof( m_delay ) );
} }