summaryrefslogtreecommitdiffstats
path: root/source/FastNBT.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/FastNBT.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/FastNBT.h b/source/FastNBT.h
index a0fe7a863..f38bfcdbd 100644
--- a/source/FastNBT.h
+++ b/source/FastNBT.h
@@ -259,7 +259,7 @@ protected:
{
// Compound: add the type and name:
m_Result.push_back((char)a_Type);
- WriteString(a_Name.c_str(), a_Name.length());
+ WriteString(a_Name.c_str(), (short)a_Name.length());
}
else
{