diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp index c1e1bf9d684..b73c9045283 100644 --- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp +++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp @@ -16,7 +16,7 @@ static pthread_once_t tao_lb_once_control = PTHREAD_ONCE_INIT; extern "C" void tao_lb_random_init_routine (void) { - ACE_OS::srand (ACE_static_cast (unsigned int, ACE_OS::time ())); + ACE_OS::srand (static_cast<unsigned int> (ACE_OS::time ())); } @@ -145,11 +145,10 @@ TAO_LB_Random::_tao_next_member ( // random as the higher order bits. // Prevent integer arithmetic overflow. - const CORBA::Float flen = ACE_static_cast (CORBA::Float, len); + const CORBA::Float flen = static_cast<CORBA::Float> (len); const CORBA::ULong i = - ACE_static_cast (CORBA::ULong, - flen * ACE_OS::rand () / (RAND_MAX + 1.0)); + static_cast<CORBA::ULong> (flen * ACE_OS::rand () / (RAND_MAX + 1.0)); ACE_ASSERT (i < len); |