summaryrefslogtreecommitdiff
path: root/cpp/src/slice2freeze/Main.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-05-30 06:13:39 +0000
committerMichi Henning <michi@zeroc.com>2003-05-30 06:13:39 +0000
commit63539f257131942912257a7f0663e2e70aab890b (patch)
tree017f7a35470a26bbd0c66dd521cd55f361799056 /cpp/src/slice2freeze/Main.cpp
parent*** empty log message *** (diff)
downloadice-63539f257131942912257a7f0663e2e70aab890b.tar.bz2
ice-63539f257131942912257a7f0663e2e70aab890b.tar.xz
ice-63539f257131942912257a7f0663e2e70aab890b.zip
Changed C++ mapping of Slice byte from char to unsigned char.
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);";