From 00a468162dd3aede1c838109f2899293659cf01e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Jun 2019 00:57:25 +0200 Subject: [PATCH] Fix signed/unsigned comparison. --- client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 7a27d8fb..50ccc422 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1459,7 +1459,7 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token ) ptr = MemRead( &item->frameImage.image ); const auto w = MemRead( &item->frameImage.w ); const auto h = MemRead( &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 );