diff options
Diffstat (limited to 'cpp/src/Slice/VbUtil.cpp')
-rwxr-xr-x | cpp/src/Slice/VbUtil.cpp | 6 |
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) { |