mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Fix signed/unsigned comparison.
This commit is contained in:
parent
5470dae120
commit
00a468162d
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user