summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/SchematicFileSerializer.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-09 20:59:59 +0200
committerMattes D <github@xoft.cz>2014-05-09 20:59:59 +0200
commit839cff62ad34fd4203e7920b491419ced8f0ddbd (patch)
tree3557874b60f1a0ae440651459aefdbfb6e56ce2b /src/WorldStorage/SchematicFileSerializer.cpp
parentRemoved unused constants from MineShafts and Ravines. (diff)
parentFixed size_t in FireworksSerializer. (diff)
downloadcuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar
cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.gz
cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.bz2
cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.lz
cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.xz
cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.tar.zst
cuberite-839cff62ad34fd4203e7920b491419ced8f0ddbd.zip
Diffstat (limited to 'src/WorldStorage/SchematicFileSerializer.cpp')
-rw-r--r--src/WorldStorage/SchematicFileSerializer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WorldStorage/SchematicFileSerializer.cpp b/src/WorldStorage/SchematicFileSerializer.cpp
index 2e356b172..d3a708f92 100644
--- a/src/WorldStorage/SchematicFileSerializer.cpp
+++ b/src/WorldStorage/SchematicFileSerializer.cpp
@@ -230,11 +230,11 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP
}
// Copy the block types and metas:
- int NumBytes = (int)a_BlockArea.GetBlockCount();
+ size_t NumBytes = a_BlockArea.GetBlockCount();
if (a_NBT.GetDataLength(TBlockTypes) < NumBytes)
{
LOG("BlockTypes truncated in the schematic file (exp %d, got %d bytes). Loading partial.",
- NumBytes, a_NBT.GetDataLength(TBlockTypes)
+ (int)NumBytes, (int)a_NBT.GetDataLength(TBlockTypes)
);
NumBytes = a_NBT.GetDataLength(TBlockTypes);
}
@@ -242,11 +242,11 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP
if (AreMetasPresent)
{
- int NumBytes = (int)a_BlockArea.GetBlockCount();
+ size_t NumBytes = a_BlockArea.GetBlockCount();
if (a_NBT.GetDataLength(TBlockMetas) < NumBytes)
{
LOG("BlockMetas truncated in the schematic file (exp %d, got %d bytes). Loading partial.",
- NumBytes, a_NBT.GetDataLength(TBlockMetas)
+ (int)NumBytes, (int)a_NBT.GetDataLength(TBlockMetas)
);
NumBytes = a_NBT.GetDataLength(TBlockMetas);
}