Fix signed/unsigned comparison.

This commit is contained in:
Bartosz Taudul 2019-06-08 00:57:25 +02:00
parent 5470dae120
commit 00a468162d

View File

@ -1459,7 +1459,7 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token )
ptr = MemRead<uint64_t>( &item->frameImage.image );
const auto w = MemRead<uint16_t>( &item->frameImage.w );
const auto h = MemRead<uint16_t>( &item->frameImage.h );
const auto csz = w * h / 2;
const auto csz = size_t( w * h / 2 );
if( csz > m_etc1BufSize )
{
tracy_free( m_etc1Buf );