diff options
Diffstat (limited to 'cpp/src/slice2cs')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 2 | ||||
-rw-r--r-- | cpp/src/slice2cs/Main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 5863bb403fc..f51b5a0aa1c 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -2788,7 +2788,7 @@ Slice::Gen::generateChecksums(const UnitPtr& u) str.fill('0'); for(vector<unsigned char>::const_iterator q = p->second.begin(); q != p->second.end(); ++q) { - str << (int)(*q); + str << static_cast<int>(*q); } _out << str.str() << "\");"; } diff --git a/cpp/src/slice2cs/Main.cpp b/cpp/src/slice2cs/Main.cpp index 2daf35e928d..1491f28bc18 100644 --- a/cpp/src/slice2cs/Main.cpp +++ b/cpp/src/slice2cs/Main.cpp @@ -103,7 +103,7 @@ compile(int argc, char* argv[]) vector<string> args; try { - args = opts.parse(argc, (const char**)argv); + args = opts.parse(argc, const_cast<const char**>(argv)); } catch(const IceUtilInternal::BadOptException& e) { |