summaryrefslogtreecommitdiffstats
path: root/src/ChunkData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChunkData.cpp')
-rw-r--r--src/ChunkData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkData.cpp b/src/ChunkData.cpp
index 5c11212ea..6ccb28fe4 100644
--- a/src/ChunkData.cpp
+++ b/src/ChunkData.cpp
@@ -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;