1
0

Fixed sign comparison.

This commit is contained in:
madmaxoft 2014-05-30 09:49:57 +02:00
parent 0b49529e42
commit 5368c5dd79

View File

@ -343,7 +343,7 @@ void cChunkData::CopyBlockTypes(BLOCKTYPE * a_Dest, size_t a_Idx, size_t a_Lengt
ToSkip = std::max(ToSkip - (int)SectionBlockCount, 0);
StartPos = SectionBlockCount - ToSkip;
}
if (ToSkip < SectionBlockCount)
if (ToSkip < (int)SectionBlockCount)
{
size_t ToCopy = std::min(+SectionBlockCount, a_Length);
a_Length -= ToCopy;