summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-30 09:49:57 +0200
committermadmaxoft <github@xoft.cz>2014-05-30 09:49:57 +0200
commit5368c5dd79bce465d32517eec62701abc9b380d9 (patch)
tree8d8cce0ffb779943961934ffd8f1a6028176c239
parentFixed test return values. (diff)
downloadcuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar
cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.gz
cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.bz2
cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.lz
cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.xz
cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.tar.zst
cuberite-5368c5dd79bce465d32517eec62701abc9b380d9.zip
-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;