diff options
author | madmaxoft <github@xoft.cz> | 2014-05-01 23:20:00 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-01 23:20:00 +0200 |
commit | 6bdd3ee35e85768634e41af86a99bbdd933ffb3a (patch) | |
tree | 5481ae6b270a197f4a57341dfc42fb98343022b0 /src/WorldStorage/FastNBT.h | |
parent | Merge branch 'master' into SslWebAdmin (diff) | |
parent | Fixed a warning in Noise. (diff) | |
download | cuberite-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.h | 4 |
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; } |