summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp
index ef145723be2..31a0c141248 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp
@@ -26,7 +26,8 @@ TAO_Time_Service_Server::universal_time (CORBA::Environment &ACE_TRY_ENV)
// Return the local time of the system as a UTO.
ACE_NEW_THROW_EX (uto,
- TAO_UTO (CORBA::ULongLong (ACE_OS::gettimeofday ().sec () * 10000000
+ TAO_UTO (CORBA::ULongLong (ACE_OS::gettimeofday ().sec () *
+ ACE_static_cast(CORBA::ULongLong, 10000000)
+ ACE_OS::gettimeofday ().usec () * 10),
0,
0),