diff options
author | Mattes D <github@xoft.cz> | 2014-05-09 19:33:22 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-05-09 19:33:22 +0200 |
commit | 5b54dc3eacca565531446d9c8cc9be7be084670c (patch) | |
tree | 528508f261c4d6e9bf27b728c292480d1588c6cb /src/WorldStorage/FastNBT.cpp | |
parent | World pre-generation distance is settable in world.ini. (diff) | |
download | cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.gz cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.bz2 cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.lz cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.xz cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.zst cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.zip |
Diffstat (limited to 'src/WorldStorage/FastNBT.cpp')
-rw-r--r-- | src/WorldStorage/FastNBT.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/FastNBT.cpp b/src/WorldStorage/FastNBT.cpp index 52e998f88..c4a6a7a5b 100644 --- a/src/WorldStorage/FastNBT.cpp +++ b/src/WorldStorage/FastNBT.cpp @@ -79,11 +79,11 @@ bool cParsedNBT::Parse(void) -bool cParsedNBT::ReadString(int & a_StringStart, int & a_StringLen) +bool cParsedNBT::ReadString(size_t & a_StringStart, size_t & a_StringLen) { NEEDBYTES(2); a_StringStart = m_Pos + 2; - a_StringLen = GetBEShort(m_Data + m_Pos); + a_StringLen = (size_t)GetBEShort(m_Data + m_Pos); if (a_StringLen < 0) { // Invalid string length |