Use proper type for buffer size comparison.

This commit is contained in:
Bartosz Taudul 2019-06-22 14:07:53 +02:00
parent 70a7033a64
commit 1c41229766

View File

@ -1255,7 +1255,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
auto fi = m_slab.Alloc<FrameImage>(); auto fi = m_slab.Alloc<FrameImage>();
f.Read2( fi->w, fi->h ); f.Read2( fi->w, fi->h );
f.Read( fi->flip ); f.Read( fi->flip );
const auto sz = fi->w * fi->h / 2; const auto sz = size_t( fi->w * fi->h / 2 );
if( tmpbufsz < sz ) if( tmpbufsz < sz )
{ {
tmpbufsz = sz; tmpbufsz = sz;