summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 22:43:37 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 22:43:37 +0200
commitb6b86b7270ca3f44b0b2a24ffe8292e87e762713 (patch)
treed66f4fa9c6eeaf9db7d1063811820cdd1edd9ce1
parentFixed warning in cCallbackSslContext::cDataCallbacks. (diff)
downloadcuberite-b6b86b7270ca3f44b0b2a24ffe8292e87e762713.tar
cuberite-b6b86b7270ca3f44b0b2a24ffe8292e87e762713.tar.gz
cuberite-b6b86b7270ca3f44b0b2a24ffe8292e87e762713.tar.bz2
cuberite-b6b86b7270ca3f44b0b2a24ffe8292e87e762713.tar.lz
cuberite-b6b86b7270ca3f44b0b2a24ffe8292e87e762713.tar.xz
cuberite-b6b86b7270ca3f44b0b2a24ffe8292e87e762713.tar.zst
cuberite-b6b86b7270ca3f44b0b2a24ffe8292e87e762713.zip
Diffstat (limited to '')
-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;
}