diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-03-04 09:39:13 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-03-04 09:39:13 -0330 |
commit | e6c3b3c89a3eda587e1cf7a7710a99ceeafd25ab (patch) | |
tree | cfb77d999b23f73c645db92ce722bfc362501bad /cpp | |
parent | Merge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff) | |
parent | Fixed IceStorm Win32 x64 compilation error (diff) | |
download | ice-e6c3b3c89a3eda587e1cf7a7710a99ceeafd25ab.tar.bz2 ice-e6c3b3c89a3eda587e1cf7a7710a99ceeafd25ab.tar.xz ice-e6c3b3c89a3eda587e1cf7a7710a99ceeafd25ab.zip |
Merge branch 'master' of ssh://cvs.zeroc.com/home/git/ice
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/IceStorm/NodeI.cpp | 4 | ||||
-rw-r--r-- | cpp/src/IceStorm/Service.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/IceStorm/NodeI.cpp b/cpp/src/IceStorm/NodeI.cpp index b0ff4bb1bb5..fce38132225 100644 --- a/cpp/src/IceStorm/NodeI.cpp +++ b/cpp/src/IceStorm/NodeI.cpp @@ -535,7 +535,7 @@ NodeI::mergeContinue() // in the election. If we're running a subsequent election then we // need a majority of the nodes to be active in order to start // running. - unsigned int ingroup = tmpSet.size(); + unsigned int ingroup = static_cast<unsigned int>(tmpSet.size()); if(_max != _nodes.size() && ingroup != _nodes.size() -1 || ingroup < _nodes.size()/2) { if(_traceLevels->election > 0) @@ -619,7 +619,7 @@ NodeI::mergeContinue() // At this point we've ensured that we have the latest database // state, as such we can set our _max flag. - unsigned int max = tmpSet.size() + 1; + unsigned int max = static_cast<unsigned int>(tmpSet.size()) + 1; { Lock sync(*this); if(max > _max) diff --git a/cpp/src/IceStorm/Service.cpp b/cpp/src/IceStorm/Service.cpp index 265e0d58fd4..d0cea4c8027 100644 --- a/cpp/src/IceStorm/Service.cpp +++ b/cpp/src/IceStorm/Service.cpp @@ -282,7 +282,7 @@ IceStorm::ServiceI::start( _instance = new Instance(instanceName, name, communicator, publishAdapter, topicAdapter, iceGridDeployment, nodeAdapter, nodes[id]); - _instance->observers()->setMajority(nodes.size()/2); + _instance->observers()->setMajority(static_cast<unsigned int>(nodes.size())/2); // Trace replication information. TraceLevelsPtr traceLevels = _instance->traceLevels(); |