summaryrefslogtreecommitdiff
path: root/cpp/src/slice2freeze/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2freeze/Main.cpp')
-rw-r--r--cpp/src/slice2freeze/Main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp
index c63deb92dae..24b3cb70f1e 100644
--- a/cpp/src/slice2freeze/Main.cpp
+++ b/cpp/src/slice2freeze/Main.cpp
@@ -151,7 +151,7 @@ writeCodecC(const TypePtr& type, const string& name, const string& freezeType, O
//
C << nl << "std::string str;";
C << nl << "str.append(\"<data>\");";
- C << nl << "str.append(&bytes[0], bytes.size());";
+ C << nl << "str.append(reinterpret_cast<const char*>(&bytes[0]), bytes.size());";
C << nl << "str.append(\"</data>\");";
C << nl << "std::istringstream istr(str);";
C << nl << "Ice::StreamPtr stream = new IceXML::StreamI(communicator, istr, false);";