diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-01-25 14:58:25 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-01-25 14:58:25 +0000 |
commit | f9313d89eb614f27e7153fad9461acd466ef6295 (patch) | |
tree | 84d5c35cf7f30a2c201fcbfeea6debeb384cb17f /cpp/src/slice2cppe/Gen.cpp | |
parent | Fixed bug 815 (diff) | |
download | ice-f9313d89eb614f27e7153fad9461acd466ef6295.tar.bz2 ice-f9313d89eb614f27e7153fad9461acd466ef6295.tar.xz ice-f9313d89eb614f27e7153fad9461acd466ef6295.zip |
Added static_cast
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cppe/Gen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index 5ef7510641f..ddc010cd38c 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -791,7 +791,7 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p) C << sp << nl << "void" << nl << scope.substr(2) << "__write(::IceInternal::BasicStream* __os, const " << s << "* begin, const " << s << "* end, " << scope << "__U__" << name << ")"; C << sb; - C << nl << "::Ice::Int size = end - begin;"; + C << nl << "::Ice::Int size = static_cast< ::Ice::Int>(end - begin);"; C << nl << "__os->writeSize(size);"; C << nl << "for(int i = 0; i < size; ++i)"; C << sb; |