diff options
author | Jose <jose@zeroc.com> | 2014-10-30 16:03:47 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-10-30 16:03:47 +0100 |
commit | da8c267316512436ba19f28fa42510be305093f6 (patch) | |
tree | 935f3eefd77e909c847a44883fef38fce4bda48d /cpp/src/Ice/Instance.cpp | |
parent | Merge branch 'master' of ssh://git/home/git/ice (diff) | |
download | ice-da8c267316512436ba19f28fa42510be305093f6.tar.bz2 ice-da8c267316512436ba19f28fa42510be305093f6.tar.xz ice-da8c267316512436ba19f28fa42510be305093f6.zip |
ICE-5804 - Warnings when building with GCC (Eliminate C style casts)
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r-- | cpp/src/Ice/Instance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp index b4bd3d1ae14..bf3dc73c8ed 100644 --- a/cpp/src/Ice/Instance.cpp +++ b/cpp/src/Ice/Instance.cpp @@ -1263,7 +1263,7 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Initi { const_cast<size_t&>(_messageSizeMax) = defaultMessageSizeMax * 1024; // Ignore non-sensical values. } - else if(static_cast<size_t>(num) > (size_t)(0x7fffffff / 1024)) + else if(static_cast<size_t>(num) > static_cast<size_t>(0x7fffffff / 1024)) { const_cast<size_t&>(_messageSizeMax) = static_cast<size_t>(0x7fffffff); } |