Make sure uintptr_t is really size of pointer.

This commit is contained in:
Bartosz Taudul 2018-06-19 17:51:55 +02:00
parent ca499eefaf
commit 5368f386ce

View File

@ -285,6 +285,7 @@ static const size_t QueueDataSize[] = {
static_assert( QueueItemSize == 32, "Queue item size not 32 bytes" );
static_assert( sizeof( QueueDataSize ) / sizeof( size_t ) == (uint8_t)QueueType::NUM_TYPES, "QueueDataSize mismatch" );
static_assert( sizeof( void* ) <= sizeof( uint64_t ), "Pointer size > 8 bytes" );
static_assert( sizeof( void* ) == sizeof( uintptr_t ), "Pointer size != uintptr_t" );
};