summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/VbUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/VbUtil.cpp')
-rwxr-xr-xcpp/src/Slice/VbUtil.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Slice/VbUtil.cpp b/cpp/src/Slice/VbUtil.cpp
index 1ce6aef391a..8fd115f961e 100755
--- a/cpp/src/Slice/VbUtil.cpp
+++ b/cpp/src/Slice/VbUtil.cpp
@@ -518,17 +518,17 @@ Slice::VbGenerator::writeMarshalUnmarshalCode(Output &out,
if(sz <= 0x7f)
{
func = marshal ? "writeByte" : "readByte";
- cast = marshal ? "Byte" : fixId(en->scoped());
+ cast = marshal ? string("Byte") : fixId(en->scoped());
}
else if(sz <= 0x7fff)
{
func = marshal ? "writeShort" : "readShort";
- cast = marshal ? "Short" : fixId(en->scoped());
+ cast = marshal ? string("Short") : fixId(en->scoped());
}
else
{
func = marshal ? "writeInt" : "readInt";
- cast = marshal ? "Integer" : fixId(en->scoped());
+ cast = marshal ? string("Integer") : fixId(en->scoped());
}
if(marshal)
{