diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-20 16:33:04 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-20 16:33:04 +0100 |
commit | 32e6be002d70f8fec486f0127fc307a21f1ff43e (patch) | |
tree | 5601738de3331ff3bfa70bd286784bdd4ba60055 /src/WorldStorage/WSSAnvil.cpp | |
parent | made LUA shared unless STATIC_LUA is set (diff) | |
parent | Fixed warnings in HTTP parser. (diff) | |
download | cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.gz cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.bz2 cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.lz cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.xz cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.zst cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.zip |
Diffstat (limited to 'src/WorldStorage/WSSAnvil.cpp')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 79be4dfa2..dd06f19fa 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -469,7 +469,7 @@ cChunkDef::BiomeMap * cWSSAnvil::LoadVanillaBiomeMapFromNBT(cChunkDef::BiomeMap return NULL; } const unsigned char * VanillaBiomeData = (const unsigned char *)(a_NBT.GetData(a_TagIdx)); - for (int i = 0; i < ARRAYCOUNT(*a_BiomeMap); i++) + for (size_t i = 0; i < ARRAYCOUNT(*a_BiomeMap); i++) { if ((VanillaBiomeData)[i] == 0xff) { @@ -497,7 +497,7 @@ cChunkDef::BiomeMap * cWSSAnvil::LoadBiomeMapFromNBT(cChunkDef::BiomeMap * a_Bio return NULL; } const int * BiomeData = (const int *)(a_NBT.GetData(a_TagIdx)); - for (int i = 0; i < ARRAYCOUNT(*a_BiomeMap); i++) + for (size_t i = 0; i < ARRAYCOUNT(*a_BiomeMap); i++) { (*a_BiomeMap)[i] = (EMCSBiome)(ntohl(BiomeData[i])); if ((*a_BiomeMap)[i] == 0xff) @@ -1538,7 +1538,7 @@ unsigned cWSSAnvil::cMCAFile::FindFreeLocation(int a_LocalX, int a_LocalZ, const // Doesn't fit, append to the end of file (we're wasting a lot of space, TODO: fix this later) unsigned MaxLocation = 2 << 8; // Minimum sector is #2 - after the headers - for (int i = 0; i < ARRAYCOUNT(m_Header); i++) + for (size_t i = 0; i < ARRAYCOUNT(m_Header); i++) { ChunkLocation = ntohl(m_Header[i]); ChunkLocation = ChunkLocation + ((ChunkLocation & 0xff) << 8); // Add the number of sectors used; don't care about the 4th byte |