summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/FastNBT.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 23:20:00 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 23:20:00 +0200
commit6bdd3ee35e85768634e41af86a99bbdd933ffb3a (patch)
tree5481ae6b270a197f4a57341dfc42fb98343022b0 /src/WorldStorage/FastNBT.h
parentMerge branch 'master' into SslWebAdmin (diff)
parentFixed a warning in Noise. (diff)
downloadcuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.gz
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.bz2
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.lz
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.xz
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.tar.zst
cuberite-6bdd3ee35e85768634e41af86a99bbdd933ffb3a.zip
Diffstat (limited to 'src/WorldStorage/FastNBT.h')
-rw-r--r--src/WorldStorage/FastNBT.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/FastNBT.h b/src/WorldStorage/FastNBT.h
index 5e5af3ca3..bcf93228f 100644
--- a/src/WorldStorage/FastNBT.h
+++ b/src/WorldStorage/FastNBT.h
@@ -237,7 +237,7 @@ public:
{
ASSERT(m_Tags[(size_t)a_Tag].m_Type == TAG_String);
AString res;
- res.assign(m_Data + m_Tags[(size_t)a_Tag].m_DataStart, m_Tags[(size_t)a_Tag].m_DataLength);
+ res.assign(m_Data + m_Tags[(size_t)a_Tag].m_DataStart, (size_t)m_Tags[(size_t)a_Tag].m_DataLength);
return res;
}
@@ -245,7 +245,7 @@ public:
inline AString GetName(int a_Tag) const
{
AString res;
- res.assign(m_Data + m_Tags[(size_t)a_Tag].m_NameStart, m_Tags[(size_t)a_Tag].m_NameLength);
+ res.assign(m_Data + m_Tags[(size_t)a_Tag].m_NameStart, (size_t)m_Tags[(size_t)a_Tag].m_NameLength);
return res;
}