diff options
author | worktycho <work.tycho@gmail.com> | 2014-05-29 20:35:47 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-05-29 20:35:47 +0200 |
commit | 901e3ec4940f2a11f7866194f02732c813ce71b9 (patch) | |
tree | 2288256e6adfd4f9eff41cb0591663f282ac893a | |
parent | fix underflow (diff) | |
download | cuberite-901e3ec4940f2a11f7866194f02732c813ce71b9.tar cuberite-901e3ec4940f2a11f7866194f02732c813ce71b9.tar.gz cuberite-901e3ec4940f2a11f7866194f02732c813ce71b9.tar.bz2 cuberite-901e3ec4940f2a11f7866194f02732c813ce71b9.tar.lz cuberite-901e3ec4940f2a11f7866194f02732c813ce71b9.tar.xz cuberite-901e3ec4940f2a11f7866194f02732c813ce71b9.tar.zst cuberite-901e3ec4940f2a11f7866194f02732c813ce71b9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkData.cpp b/src/ChunkData.cpp index 72187f393..382e7a5a8 100644 --- a/src/ChunkData.cpp +++ b/src/ChunkData.cpp @@ -340,7 +340,7 @@ void cChunkData::CopyBlockTypes(BLOCKTYPE * a_Dest, size_t a_Idx, size_t a_Lengt size_t StartPos = 0; if (ToSkip > 0) { - ToSkip = std::max((ssize_t)ToSkip - (ssize_t)SectionBlockCount, (size_t) 0); + ToSkip = std::max((ssize_t)ToSkip - (ssize_t)SectionBlockCount, (ssize_t) 0); StartPos = SectionBlockCount - ToSkip; } if (ToSkip == 0) |